bheil@umaxc.weeg.uiowa.edu (Brian Heil) (10/18/90)
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. Can I start emacs and tell it I want 43 lines. I'd really like to have 43 lines to edit with (I'm spoiled by VLT! Can't stand using terms with 24 lines anymore). Also I got no Lisp knowledge, from the sound of things I can use Lisp to do things like remap invoking help to the help key and making my backspace a real backspace key again. The backspace, delete keys get swapped from the normal csh functions when I go into emacs... it annoys me. I'd be very much appreciative if anybody can help me. And I know there is a GNU Emacs newsgroup, I just wanted to post something to c.s.a other than 'Oh no the Amiga is doooooooooomed because the new Macs are out, boo hoo.' As a former vice presidential candidate once said about the Mac... 'I know Amigas... and your no Amiga.' or maybe it was something else? ;) Reply via email please (it already takes to long to read the 8 or 9 pages of c.s.a.* I get every day!) Brian Heil ) University of Iowa bheil@scout-po.biz.uiowa.edu ( College of Business Administration bheil@umaxc.weeg.uiowa.edu ) Computing Services Organization I have a Mac plus on my desk, next to my Amiga... they fight ALL the time!
ridder@elvira.enet.dec.com (Hans Ridder) (10/23/90)
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 <ESC>[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 <ESC>[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
mwm@raven.relay.pa.dec.com (Mike (My Watch Has Windows) Meyer) (10/24/90)
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 <ESC>[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 <ESC>[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. <mike --