fitz@mml0.meche.rpi.edu (Brian Fitzgerald) (10/10/90)
It seems that before some full screen display programs like vi, less, top, etc. exit, they print the "termcap end" escape sequence. The command tool in SunView seems to recognize this and redraw the original screen, which shows the previous interactive session. Is there a way to do this while running screen or some other program that runs on an ascii terminal? Post, or email replies (and all flames) by 10/31/90 and I'll summarize. Patches to screen welcome. Brian Fitzgerald
gt0178a@prism.gatech.EDU (BURNS) (10/10/90)
in article <QYV%WC#@rpi.edu>, fitz@mml0.meche.rpi.edu (Brian Fitzgerald) says: } It seems that before some full screen display programs like } vi, less, top, etc. exit, they print the "termcap end" } escape sequence. The command tool in SunView seems to } recognize this and redraw the original screen, which shows } the previous interactive session. Is there a way to do this while } running screen or some other program that runs on an ascii terminal? Actually, I find that "feature" rather annoying. -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu
pfalstad@bathe.Princeton.EDU (Paul John Falstad) (10/10/90)
In article <14887@hydra.gatech.EDU> gt0178a@prism.gatech.EDU (BURNS) writes: >in article <QYV%WC#@rpi.edu>, fitz@mml0.meche.rpi.edu (Brian Fitzgerald) says: >} It seems that before some full screen display programs like >} vi, less, top, etc. exit, they print the "termcap end" >} escape sequence. The command tool in SunView seems to >} recognize this and redraw the original screen, which shows >} the previous interactive session. Is there a way to do this while >} running screen or some other program that runs on an ascii terminal? >Actually, I find that "feature" rather annoying. So do I, especially when less (the more replacement) clears the screen when I'm trying to read a file after exiting. In case anyone is interested, I'm posting this shell script that I use as a front end for less. Feel free to flame if there's an easier way. #! /bin/sh # a front end for less that does not make xterm swap screens tt=$TERM TERMCAP="zterm:ti=:te=:tc=$tt:" TERM=zterm /usr/local/bin/less "$@" -- Are you nervy? Irritable? Depressed? Tired of life? Keep it up!
brnstnd@kramden.acf.nyu.edu (Dan Bernstein) (10/11/90)
In article <3243@idunno.Princeton.EDU> pfalstad@bathe.Princeton.EDU (Paul John Falstad) writes: > In article <14887@hydra.gatech.EDU> gt0178a@prism.gatech.EDU (BURNS) writes: > > in article <QYV%WC#@rpi.edu>, fitz@mml0.meche.rpi.edu (Brian Fitzgerald) says: [ how to get ``termcap end'' to redisplay old screen on tty? ] [ it works on SunView ] > > Actually, I find that "feature" rather annoying. > So do I, Yes, and I find it annoying that vi clears the screen before pulling up a file. But this outpouring of annoyance has nothing to do with the question. How about just putting vi, less, more, or whatever on a separate screen? This shouldn't be too hard to automate, and it'll have the effect you want. ---Dan