Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!samsung!noose.ecn.purdue.edu!iuvax!rutgers!njin!princeton!bathe.Princeton.EDU!pfalstad From: pfalstad@bathe.Princeton.EDU (Paul John Falstad) Newsgroups: comp.unix.questions Subject: Re: redisplay screen after editor exits Message-ID: <3243@idunno.Princeton.EDU> Date: 10 Oct 90 14:28:14 GMT References: <14887@hydra.gatech.EDU> Sender: news@idunno.Princeton.EDU Organization: Princeton University, Princeton, New Jersey Lines: 22 In article <14887@hydra.gatech.EDU> gt0178a@prism.gatech.EDU (BURNS) writes: >in article , 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!