This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: getting 'clear' to work in Emacs shell
- From: Gary <cygwin at garydjones dot name>
- To: cygwin at cygwin dot com
- Date: Tue, 19 Oct 2010 09:45:45 +0200
- Subject: Re: getting 'clear' to work in Emacs shell
- References: <287016.30328.qm@web56705.mail.re3.yahoo.com>
Jeff Rancier wrote:
> The 'clear' work's in a Cygwin Bash session,
>
> C106426@USLINY2R86KRP8 ~
> $ alias clear
> alias clear='cat ~/.cls'
Umm... why have you done this?
,----
| $ man clear
|
| clear(1) clear(1)
|
| NAME
| clear - clear the terminal screen
| ...
`----
> within Emacs:
>
> C-z runs the command shell
> which is an interactive compiled Lisp function in `shell'.
> (shell &optional BUFFER)
Odd. I see
,----
| C-z runs the command suspend-frame, which is an interactive compiled
| Lisp function in `frame.el'.
`----
Perhaps you have customised this?
> All I get within an Emacs shell session is the following, without
> clearing the
> screen. Is there some envionment variable I need to set here?
,----
| M-x eshell
`----
:-)
Alternatively you might like to read http://www.khngai.com/emacs/cygwin.php -
"When the "clear" command is entered into the bash shell, it is expected
to clear the entire shell buffer. However, this does not work for bash
shell under Gnu Emacs. The following lisp statements solve the problem."
(Note: I haven't actually tried the indicated elisp, but my point is
that this does not really seem to be a Cygwin problem, rather an emacs
one... if it is really a problem at all. If the suggeted solution
doesn't work there are more emacs specific lists where you would
probably be better off asking.)
--
Gary Please do NOT send me 'courtesy' replies off-list.
GNU Emacs 23.2.1
emacsclient 23.2
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple