Article View: news.software.readers
Article #601Re: Problem with TI/TE sequences in rn 44
From: Vincent Archer
Date: Fri, 13 Sep 1991 21:04
Date: Fri, 13 Sep 1991 21:04
42 lines
2772 bytes
2772 bytes
In article <1991Sep10.172550.12050@solbourne.com> kucharsk@solbourne.com (William Kucharski) writes: > I've noticed one problem with rn 44, and that's that it uses the termlib init > and end variables (TI and TE) if they exist. Unfortunately, with terminal > descriptions that have alternate screens (e.g. xterm), rn can confuse things > quite a bit by doing this. For example, when using rn and vi(1) as your > editor, on a Solbourne or other SunOS machine, the following will happen: > > 1) Start rn -- the screen will flip to the "alternate" screen. > 2) Perform an action which calls an editor (e.g. vi(1)). vi will > output the "TI" sequence, also setting "alternate" screen mode. > But when you exit vi, it emits a "TE" sequence, switching back > to the "normal" screen. > 3) Now rn starts using the normal screen, with the unfortunate result > that the "send/edit/abort" prompt is placed in the middle of the > screen of text that was present when rn first switched to the > "alternate" screen. Note: This behaviour appear only when using a cmdtool (which I prompty discarded after being hit three times by "/ file system full" and an infinite loop of "Can't insert [Continue]" buttons) or xterm. Never with a shelltool... Anyway, your suggested hack (!defined sun) is not the "proper" way of doing it. The proper behaviour for ANY program that uses cursor motions, and therefore TI/TE is: 1> When entering your fullscreen mode, send TI 2> When exiting your fullscreen mode, send TE 3> When giving away control to another program, send TE 4> When getting back control from the program in 3, send TI That's what vi(1) does when you use ":!command". But then, vi is broken, because it outputs sequences at the wrong places. Try: :!cat /dev/null [Hit return to continue] :!cat /dev/null (without hitting [return]) Verrrry nice... (oops, away from newsreaders. Stuff for alt.sys.sun :-) -- Vincent Archer Email: archer@frmug.fr.mugnet.org Or: archer@evry.cnes.fr Anything good in life is either illegal, immoral, or fattening.
Technical Details
Message-ID:
<1991Sep13.210411.7331@frmug.fr.mugnet.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!mcsun!uunet!cucstud!tfd!afp!gna!frmug!archerReferences:
<1991Sep10.172550.12050@solbourne.com>Show Full Headers
Complete Article Headers
Message-ID: <1991Sep13.210411.7331@frmug.fr.mugnet.org> Subject: Re: Problem with TI/TE sequences in rn 44 Date: Fri, 13 Sep 1991 21:04:11 +0000 From: archer@frmug.fr.mugnet.org (Vincent Archer) References: <1991Sep10.172550.12050@solbourne.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!mcsun!uunet!cucstud!tfd!afp!gna!frmug!archer Newsgroups: news.software.readers Organization: Minix User Group France Lines: 42