Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!decuac!bacchus.pa.dec.com!bacchus!mwm From: mwm@raven.relay.pa.dec.com (Mike (My Watch Has Windows) Meyer) Newsgroups: comp.sys.amiga Subject: Re: GNU Emacs help request Message-ID: Date: 23 Oct 90 18:26:04 GMT References: <2789@ns-mx.uiowa.edu> <1865@shodha.enet.dec.com> Sender: news@wrl.dec.com (News) Distribution: usa Organization: Missionaria Phonibalonica Lines: 33 In-Reply-To: ridder@elvira.enet.dec.com's message of 23 Oct 90 15:38:48 GMT In article <1865@shodha.enet.dec.com> ridder@elvira.enet.dec.com (Hans Ridder) writes: 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. 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. GNU works fine for me on a 50-line VLT window. GNU Emacs does what you tell it to do. If it thinks your terminal is 24 lines long, it'll set that to the scrolling region. The solution is to convince GNU emacs that your terminal is as high/wide as it really is. On various systems, you can do this via stty before you start emacs. On others, you have to hack the termcap file. If GNU Emacs uses termcap, it might be easy to change the termcap entry.... Yes, GNU Emacs uses termcap. I don't recommend using anything in the termcap file (even the Amiga entry with my name on it). For VLT, take a VT100 entry, delete all the delays, and use _that_ instead. If you put it in your private termcap file, changing the li# and co# to be correct for your invocation of VLT is reasonable.