home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13436 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.6 KB  |  37 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!haven.umd.edu!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!kth.se!news.kth.se!krej
  3. From: krej@electrum.kth.se (Kristian Ejvind)
  4. Subject: Re: How do I increase number of screen rows?
  5. In-Reply-To: lux@sol.UVic.CA's message of 14 Nov 92 19:21:48 GMT
  6. Message-ID: <KREJ.92Nov15182108@gaia.electrum.kth.se>
  7. Sender: usenet@kth.se (Usenet)
  8. Nntp-Posting-Host: gaia.electrum.kth.se
  9. Organization: The Royal Institute of Technology, Stockholm, Sweden
  10. References: <lux.721768908@sol.UVic.CA>
  11. Date: Sun, 15 Nov 1992 17:21:08 GMT
  12. Lines: 23
  13.  
  14. In article <lux.721768908@sol.UVic.CA> lux@sol.UVic.CA (Michael O'Henly) writes:
  15. >       I want to increase the number of rows displayed by things like
  16. >   emacs and nn from 24 to 35.
  17. >
  18. >       When I dial into my machine, the terminal window is defined as
  19. >   24x80 and I can't quite figure out how to change it. I suspect it
  20. >   involves the stty command, but 'stty rows 35' doesn't seem to tell
  21. >   "full screen" emacs whatever it needs to know in order to address the
  22. >   extra rows.
  23.  
  24.    IF you are using tcsh (I don't know how any other shells do this) the
  25. problem surely is in tcsh, as it uses the scroll regions of a vt100-terminal.
  26. I had the same problem and have solved it with a little script that sends the
  27. 'set scroll-region' command to the terminal like this:
  28. ------8<----cut,cut-----
  29. stty rows 29 cols 80
  30. echo -n "<ESC>[1;29r"
  31. clear
  32. ------8<----cut,cut-----
  33. where <ESC> is the escape character, which sets the display to 29 lines, 
  34. just substitute 29 for 35 on the first two lines and it will work for you.
  35.  
  36. /Kristian
  37.