----Original Message---- >From: Igor Pechtchanski >Sent: 01 March 2005 15:48
> On Tue, 1 Mar 2005, Alexander Thurban wrote: > >> Is there a command for clearing the console? >> Can't get cls,clr,clear to work :( > > Which terminal? If the regular CMD window, "clear" works just fine (as > long as it's installed, see <http://cygwin.com/packages/>). If you use > "bash", you can also try pressing Ctrl-L (which is the default mapping to > readline's "clear-screen" function and can be changed with "bind"). > > "cls" is a DOS-ism, and won't work. Well, typing Perl commands or sed scripts at the shell prompt won't work either, but if you prepend the name of the appropriate command interpreter, with suitable flags, like this:.... cmd /c cls it does work. If you wanna get _really_ portable, you can use COMSPEC, like this: `cygpath -u "${COMSPEC}"` /c cls and then it'll work on 9xMe as well as Nt2kXp cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/