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] |
Lee said:This works fine even from a batch file. Thanks. And also works with 'xterm'.
For gui consoles, useThanks Dave, this works on 'xterm' but not on 'mintty'.
alias cls='echo -e "\033c"'
which does clear the scrollback buffer.
On 'mintty' it does a 'clear' (i.e., clears the screen),
rather than a 'cls' (i.e., clears the screen and
scrollback buffer).
Thanks Lee. I entered issue 65 for this. Looks like PuTTY took a different view from xterm as to whether the "Full Reset (RIS)" sequence should clear the scrollback, but of course MinTTY is meant to be compatible with xterm.
Meanwhile, this will do the reset and clear the scrollback:
alias cls='echo -e "\ec\e[3J"'
-- 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] |