home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!mcsun!sunic!seunet!abalon!mattias
- From: mattias@abalon.se (Mattias Gyulai)
- Newsgroups: comp.emacs
- Subject: Re: saving the screen under "emacs -nw"
- Message-ID: <MATTIAS.92Nov5115738@henrik.abalon.se>
- Date: 5 Nov 92 10:57:38 GMT
- References: <61419@aurs01.UUCP>
- Sender: mattias@abalon.se (Mattias Gyulai)
- Followup-To: comp.emacs
- Organization: Abalon AB, Stockholm, Sweden
- Lines: 30
- In-Reply-To: klassa@aurs01.UUCP's message of 3 Nov 92 21:26:38 GMT
-
- > When I run GNU Emacs with the -nw flag (for "no window," I think --
- > this flag causes Emacs to use my current window rather than creating
- > an X window for itself), the current screen contents are always wiped
- > out. I've noticed that some implementations of vi manage to save the
- > screen & replace it upon exit. Is it possible to do this in Emacs?
-
- What vi does on my sparc station with SUN/OS 4.1 when it
- starts is sending the terminfo entry smcup to save the screen contents.
- rmcup restores the screen. Easy to find out by running vi
- with TERM=xterm to an emacs buffer or file (tee can be used).
-
- If you have the same capabilities of your xterm or whatever TERM
- you are using just make a script as the one below to get the same
- effect as you have when running vi. It works fine with TERM=xterm
- for me.
-
- #!/bin/sh
- tput smcup
- emacs -nw
- tput rmcup
-
- ----------------------------------------------------------------------
- /\/\ /\/\ Mattias Gyulai
- /\/\/\ /\/\/\ mattias@abalon.se
- /\/\/\/\ /\/\/\/\ Abalon AB
- /\/\ /\/\/\ /\/\ 08 - 80 23 20
- /\/\ /\/\ /\/\attias
-
- * the reader of this note exist only while reading this note *
- ----------------------------------------------------------------------
- --
- ----------------------------------------------------------------------
- /\/\ /\/\ Mattias Gyulai
- /\/\/\ /\/\/\ mattias@abalon.se
- /\/\/\/\ /\/\/\/\ Abalon AB
-