From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oscar Fuentes Newsgroups: gmane.emacs.help Subject: Re: Clearing eshell screen Date: 25 Oct 2002 01:38:42 +0200 Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <3DB87FBD.4090707@ihs.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035503233 23497 80.91.224.249 (24 Oct 2002 23:47:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2002 23:47:13 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184rh1-00066r-00 for ; Fri, 25 Oct 2002 01:47:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184rbT-00041s-00; Thu, 24 Oct 2002 19:41:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!234-coru-x7.libre.retevision.ES!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 234-coru-x7.libre.retevision.es (62.83.54.234) Original-X-Trace: fu-berlin.de 1035502698 29653287 62.83.54.234 (16 [33817]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:106359 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2909 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2909 Kevin Rodgers writes: > Timur Aydin wrote: > > > How can I clear the eshell screen? A real clear though, not something > > like the unix shells, where typing clear just scrolls the screen > > upwards (kinda like sweeping the dirt under the carpet). > > > M-x erase-buffer RET --- Emacs output You have invoked the disabled command erase-buffer: Delete the entire contents of the current buffer. Any narrowing restriction in effect (see `narrow-to-region') is removed, so the buffer is truly empty after this. You can now type Space to try the command just this once, but leave it disabled, Y to try it and enable it (no questions if you use it again), ! to try it and enable all commands in this session, or N to do nothing (command remains disabled). Text is read-only ---- End of Emacs output So far, the only way I know of discarding the eshell buffer contents is exiting. For me (Emacs 21.1.1 on Win2k and Linux) eshell doesn't honor the eshell-buffer-maximum-lines variable either, which is dangerous, as some commands (ex. a gcc bootstrap) outputs tons of text. Eventually, you end with an eshell buffer using several megabytes of memory. -- Oscar