On Sun, Mar 15, 2009 at 4:30 PM, Paul Herring <[email protected]> wrote:
> And, of course, this whole question is normally moot anyway.
>
> Why do you *want* to clear the screen? Most CLI tools don't.
>
> Would you want 'dir' or 'ls' to clear your screen before telling you
> what's in that directory?
>
> As Victor once said (I miss him) [paraphrased] "I don't want your
> program to clear my screen. If it does, I won't use it."
I think once you are getting into full-screen text apps (like an
editor), you should be using a terminal API anyway. Many Unix
command-line tools like 'less' don't clear the screen at all , you run
the tool, display the file, and when you quit, you are back to your
original screen and whatever content was still there. Or if you are
running something like vim or emacs in console mode, you can use
Control-Z to put the full screen app into the background and you get
back to your original terminal screen.
I surely hope using the Windows console API you can do similar things.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi