Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 1997 07:10:01 -0800 (PST)
From:      Stephen Roome <steve@visint.co.uk>
To:        freebsd-bugs
Subject:   Re: gnu/5039: libdialog fails to resore terminal 
Message-ID:  <199711141510.HAA05386@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/5039; it has been noted by GNATS.

From: Stephen Roome <steve@visint.co.uk>
To: "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: gnu/5039: libdialog fails to resore terminal 
Date: Fri, 14 Nov 1997 15:09:35 +0000 (GMT)

 On Fri, 14 Nov 1997, Jordan K. Hubbard wrote:
 
 > > 	dialog --infobox "Go reset your terminal" 3 35
 > 
 > This seems to work just fine for me.  Can you be more explicit about
 > which terminal parameters are being left hosed?
 
 Ok, usually I do the following:
 
 1) start a clean xterm or rxvt
 	[There's no problem with syscons, not tried console vt220]
 
 2) rlogin <somemachine>  [same problem locally though]
 3) Run dialog or sysinstall or something like that.
 4) press cursor up to get my last command (zsh thing)
 5) Find that my terminal is printing 'A' instead of giving me my
    previous command.
 6) type reset and then re-reverse my xterm colours.
 
 I suppose this could be a problem with X11R6 as I think that might be
 where some new keypad/arrow things got glued on.
 
 I thought it could be a termcap thing, so before and after I tried this:
 
 set > ~/shell.settings.before
 [run sysinstall or similar program]
 set > ~/shell.settings.after
 
 There's no difference in what zsh thinks about my terminal ( wether zsh
 keeps an accurate record of what the terminal state is or is supposed to
 be I don't know, so this could be unimportant)
 
 Anyway, I find I'm using C-a C-p C-r (standard emacs keys) in zsh and they
 seem to work fine even after using any dialog box thing.
 
 So I figure it could be a termcap problem where termcap doesn't know about
 the R6ism's with KP_Prior, KP_Next, KP_Up, KP_Down, KP_Left, KP_Right.
 
 [Actually I think these are keypad only ones, but they may have made
 changes to normal cursor key operation as well ?]
 
 My X keyboard is set up as :
 Section "Keyboard"
    Protocol        "Standard"
    XkbRules        "xfree86"
    XkbModel        "pc102"
    XkbLayout       "gb"
 EndSection
 
 I use xmodmap when I start up: (which shouldn't affect this)
 
 +              "I" Exec xmodmap -e "keycode 49 = grave bar backslash"
 
 [ripped out of my .fvwm2rc file. (Best Window Manager by far =) ]
 
 I'm guessing that this might actually be that I don't have the proper
 termcap entries for xterm. BUT, xterms work fine to start with, which
 implies more to me that libdialog and related programs don't reset the
 terminal state properly.
 
 That however leads to me concluding that it's either termcap entries
 missing or just a problem with termcap. (probably wrongly concluded)
 
 I really don't have much more information than that. (although I can give
 a login account if you want to see it happen for yourself!)
 
 	Steve
 
 --
 Steve Roome - Vision Interactive Ltd.
 Tel:+44(0)117 9730597 Home:+44(0)976 241342
 WWW: http://dylan.visint.co.uk/
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711141510.HAA05386>