all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* When exiting Emacs is there a command to "Clear" screen or "Restore Previous State".
@ 2004-08-08  0:21 David White
  2004-08-08  1:45 ` Reinhard Kotucha
  0 siblings, 1 reply; 4+ messages in thread
From: David White @ 2004-08-08  0:21 UTC (permalink / raw)


Hello everyone,

I couldn't find anything on this subject in info emacs or google.

TIA

Dave White

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: When exiting Emacs is there a command to "Clear" screen or "Restore Previous State".
  2004-08-08  0:21 When exiting Emacs is there a command to "Clear" screen or "Restore Previous State" David White
@ 2004-08-08  1:45 ` Reinhard Kotucha
  2004-08-09 14:56   ` David White
  0 siblings, 1 reply; 4+ messages in thread
From: Reinhard Kotucha @ 2004-08-08  1:45 UTC (permalink / raw)


>>>>> "David" == David White <djwhite@snet.net> writes:

    > Hello everyone, I couldn't find anything on this subject in info
    > emacs or google.

I suppose that you are running emacs in a terminal.  It's up to the
terminal program to restore the screen.  Make sure that the TERM
variable is set properly.

For instance, in xterm you should have TERM=xterm.  On a Linux console
I have TERM=linux (this might be different in other Linux
distributions, depending on the terminal program beeing used). 

If I set TERM=vt100 the content of the screen is not restored.  But
doing this is wrong anyway because it's not a vt100 terminal.

You can check the value of the variable by typing "echo $TERM"
(without the quotes).

If the variable is set properly and it doesn't work, either your
terminal program doesn't support this feature or the configuration
file (termcap or terminfo) is broken.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha@web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: When exiting Emacs is there a command to "Clear" screen or "Restore Previous State".
  2004-08-08  1:45 ` Reinhard Kotucha
@ 2004-08-09 14:56   ` David White
  2004-08-09 16:57     ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: David White @ 2004-08-09 14:56 UTC (permalink / raw)


Reinhard Kotucha wrote:
>>>>>>"David" == David White <djwhite@snet.net> writes:
> 
> 
>     > Hello everyone, I couldn't find anything on this subject in info
>     > emacs or google.
> 
> I suppose that you are running emacs in a terminal.  It's up to the
> terminal program to restore the screen.  Make sure that the TERM
> variable is set properly.
> 
> For instance, in xterm you should have TERM=xterm.  On a Linux console
> I have TERM=linux (this might be different in other Linux
> distributions, depending on the terminal program beeing used). 
> 
> If I set TERM=vt100 the content of the screen is not restored.  But
> doing this is wrong anyway because it's not a vt100 terminal.
> 
> You can check the value of the variable by typing "echo $TERM"
> (without the quotes).
> 
> If the variable is set properly and it doesn't work, either your
> terminal program doesn't support this feature or the configuration
> file (termcap or terminfo) is broken.
> 
> Regards,
>   Reinhard
> 
Reinhard,

Thanks for the input...

Term also returns "linux" for me.
Terminfo is the config file & there is a ref to  a linux console.
I guess it just doesn't support a CLEAR srceen when emacs exits.

Good Luck,
Dave White

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: When exiting Emacs is there a command to "Clear" screen or "Restore Previous State".
  2004-08-09 14:56   ` David White
@ 2004-08-09 16:57     ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2004-08-09 16:57 UTC (permalink / raw)


David White wrote:
 > Term also returns "linux" for me.
 > Terminfo is the config file & there is a ref to  a linux console.
 > I guess it just doesn't support a CLEAR srceen when emacs exits.

Use a shell function:

function emacs_clear
{
   emacs "$@" && clear
}

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-09 16:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-08  0:21 When exiting Emacs is there a command to "Clear" screen or "Restore Previous State" David White
2004-08-08  1:45 ` Reinhard Kotucha
2004-08-09 14:56   ` David White
2004-08-09 16:57     ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.