This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Clearing the COMPLETE screen.


Igor Peshansky wrote:
> YA typo.  The above should read:
> 
> alias cs='echo -ne "\ec"'

Yes, this is what you need to do under BASH. I thought
I had verified it there, but I guess I wasn't getting
what I thought I was getting. (I mostly use ZSH--at
least I knew better than to write "print -n $'\ec'".)

In fact, under a Command window it looks like this may
end up working the same as the "clear" command (for me
it does at least clear the scroll contents). But if you
use RXVT (as I do), sending <ESC>-c does a much better
job than clear.

At least I did say YMMV. :-)

gsw

P.S. It could also be written 'echo -e "\ec\c"', which
     has an odd alliterative appeal (to me). :-)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]