From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.help Subject: Re: Suspending emacs on character terminals and "screen switching" Date: Sat, 05 May 2007 21:06:40 +0200 Organization: orebokech dot com Message-ID: <87abwjks3j.fsf@pacem.orebokech.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1178464723 29891 80.91.229.12 (6 May 2007 15:18:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 May 2007 15:18:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 06 17:18:42 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HkiVW-00051K-67 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2007 17:18:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkicN-0001Lo-Qb for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2007 11:25:47 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news4.google.com!proxad.net!cleanfeed2-b.proxad.net!nnrp17-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: }9mYu,e_@+e!`Z-P5kVXa3\_b:hdJ"B)ww[&=b<2=awG:GOIM List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43767 Archived-At: Casper Gripenberg writes: > Does anyone know what the terminal capability is that makes emacs > switch back to the "shell screen" when you suspend emacs? What you're seeing is called the "alternate screen", when TERM=xterm Emacs draws its frame in the alternate screen, leaving the original screen alone. When TERM=vt100 then Emacs uses the original screen buffer, which (as you've noticed) makes scrollback invisible. The corresponding termcap entries are 'ti' and 'te'. A Google search for "xterm alternate screen" should return plenty of relevant results.