Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!decuac!bacchus.pa.dec.com!shodha.enet.dec.com!elvira!ridder From: ridder@elvira.enet.dec.com (Hans Ridder) Newsgroups: comp.sys.amiga Subject: Re: GNU Emacs help request Message-ID: <1865@shodha.enet.dec.com> Date: 23 Oct 90 15:38:48 GMT References: <2789@ns-mx.uiowa.edu> Sender: news@shodha.enet.dec.com Distribution: usa Organization: Digital Equipment Corporation, Customer Support Center Lines: 32 In article <2789@ns-mx.uiowa.edu> bheil@umaxc.weeg.uiowa.edu (Brian Heil) writes: >Hi guys, > Can anybody give me help with GNU Emacs and VLT? I run VLT in >interlaced/ custom screen with 43 lines and when I exit emacs I get >reset to 24 lines. This is a pet peve of mine.... Dunno how to fix this in GNU Emacs, but I know why it's happening (I fixed it in TOPS-20 Emacs, and many other programs.) It's caused by using the wrong escape sequence to clear the scroll region. GNU Emacs is probably using [1;24r which *sets* the scroll region to lines 1 to 24. This works fine on 24 line terminals, but loses on larger ones. What should be used to *clear* the scroll region is [r which sets the scroll region to the default i.e. the size of the terminal. I once hacked an old version of VT100 to catch requests to set the scroll region to 1-24 and set it to the height of the window instead. Ugly, but it worked. If GNU Emacs uses termcap, it might be easy to change the termcap entry.... >Brian Heil ) University of Iowa -hans ------------------------------------------------------------------------ Hans-Gabriel Ridder Digital Equipment Corporation ridder@elvira.enet.dec.com Customer Support Center ...decwrl!elvira.enet!ridder Colorado Springs, CO