delias - 2012-01-16

I've seen this come up a lot in discussion and bug reports, but the following functionality is actually a problem with CMD.EXE not Console2 itself.

You can test this with a lot of applications written for Cygwin, but for this example, we'll use VIM and BASH.

1) Open Vim and type a bunch of lines so that you have to scroll to see the entire document.

2) scroll to the top of your document, then issue a ":q!" to quit the application.

3) Now that you're back at your Cygwin Bash shell prompt, scroll down a few lines.

4) See what you typed in vim is still in your scrollback buffer.

CTRL+L or "clear" from the ncurses package do clear the screen, but not the scrollback buffer.

A workaround for this is to create an alias in your .bashrc (or whatever shell profile you use) to clear the CMD scroll buffer (since Console2 is just displaying what CMD displays).

alias cls='cmd /c cls'

Load up a new shell or source your new profile, and typing "cls" truly clears the screen as you would expect.