home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / emacs / 3465 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  2.1 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!mcsun!sunic!seunet!abalon!mattias
  2. From: mattias@abalon.se (Mattias Gyulai)
  3. Newsgroups: comp.emacs
  4. Subject: Re: saving the screen under "emacs -nw"
  5. Message-ID: <MATTIAS.92Nov5115738@henrik.abalon.se>
  6. Date: 5 Nov 92 10:57:38 GMT
  7. References: <61419@aurs01.UUCP>
  8. Sender: mattias@abalon.se (Mattias Gyulai)
  9. Followup-To: comp.emacs
  10. Organization: Abalon AB, Stockholm, Sweden
  11. Lines: 30
  12. In-Reply-To: klassa@aurs01.UUCP's message of 3 Nov 92 21:26:38 GMT
  13.  
  14. > When I run GNU Emacs with the -nw flag (for "no window," I think --
  15. > this flag causes Emacs to use my current window rather than creating
  16. > an X window for itself), the current screen contents are always wiped
  17. > out.  I've noticed that some implementations of vi manage to save the
  18. > screen & replace it upon exit.  Is it possible to do this in Emacs?
  19.  
  20. What vi does on my sparc station with SUN/OS 4.1 when it
  21. starts is sending the terminfo entry smcup to save the screen contents.  
  22. rmcup restores the screen.  Easy to find out by running vi 
  23. with TERM=xterm to an emacs buffer or file (tee can be used).
  24.  
  25. If you have the same capabilities of your xterm or whatever TERM
  26. you are using just make a script as the one below to get the same 
  27. effect as you have when running vi.  It works fine with TERM=xterm
  28. for me.
  29.     
  30. #!/bin/sh
  31. tput smcup
  32. emacs -nw
  33. tput rmcup
  34.  
  35. ----------------------------------------------------------------------
  36.      /\/\     /\/\                              Mattias Gyulai
  37.     /\/\/\   /\/\/\                             mattias@abalon.se
  38.    /\/\/\/\ /\/\/\/\                            Abalon AB
  39.   /\/\  /\/\/\   /\/\                           08 - 80 23 20
  40.  /\/\    /\/\     /\/\attias                   
  41.  
  42.   * the reader of this note exist only while reading this note *
  43. ----------------------------------------------------------------------
  44. -- 
  45. ----------------------------------------------------------------------
  46.      /\/\     /\/\                              Mattias Gyulai
  47.     /\/\/\   /\/\/\                             mattias@abalon.se
  48.    /\/\/\/\ /\/\/\/\                            Abalon AB
  49.