This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Clearing the Cygwin console
Lee D. Rothstein wrote:
> Andy Koppe wrote:
>>> on Linux/UNIX systems with the command 'clear' the console content
>>> usually
>>> can be "flushed", on Windows with 'cls'.
>>> None of these commands worked with Cygwin. If I enter 'clear', the
>>> message
>>> bash: clear: command not found
>>> is returned.
>>>
>>> How can a console used with Cygwin be cleared?
>>
>> Ctrl+L. Works in all terminals.
>
> clear.exe is available in the ncurses package.
>
> As Andy said ^-l works.
>
> However, with both clear and ^-l, the scroll buffer is not cleared which
> makes it use with text-based debugging
> rather limited. That's one reason the alternate screen option on 'rxvt',
> and 'xterm' is useful.
For gui consoles, use
alias cls='echo -e "\033c"'
which does clear the scrollback buffer.
cheers,
DaveK
--
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/