Re: [OT] Re: how do i clear a screen?

From: Martijn Lievaart (m_at_rtij.nl.removefromhere.invalid)
Date: 10/20/03


Date: Mon, 20 Oct 2003 17:20:44 +0200

On Mon, 20 Oct 2003 17:51:11 +0300, WW wrote:

>>
>> Possible? Nah. I once tried to set my command shell to bash on
>> Windows. It does not work. There are replacements for command.com and
>> cmd.exe (4dos and 4NT come to mind), but those that keep Windows
>> working are compattible enough for things like this to work
>> guarenteed.
>
> It is. I can anytime alias cls to dir in 4dos. And I had command.com (IIRC
> even cmd.exe) replacements, which did not run *any* command unless you have
> typed it... well, example:

Yes possible in that sense, yes. But lot of things don't work anymore.
Don't ask me what these where, it was a long time ago (using NT4 fwiw)
 
> C:\>cls
> You are rude!
> C:\>cls
> Say the magic word!
> C:\>cls, please
> <the screen is cleared>
>
> Fun programs to install on workmates computers. ;-)

I once created a file <Projecname>Demo.exe and left it in a shared folder.
You could hear from the swearing who had tried it out :-)

M4

P.S. The program just did a ExitWindowsEx with the right combination of
flags.



Relevant Pages

  • Re: ping Purl Gurl? Beginner Level Perl
    ... followed by slow deliberate "typing" of one character at a time. ... Windows machines is good motivation for using Win. ... My guess is Windows' command shell, ... buffering on your *nix machine behaves different than Win. ...
    (alt.usage.english)
  • Re: Environmental Variables
    ... >>shell has been ported to DOS and/or Windows). ... bash running as a shell in an Xterm ... It's part of a collection of Unix utilities ported to DOS that I ...
    (comp.os.msdos.programmer)
  • Re: top 5 reasons that posts arent made from OpenSuSE/Linux
    ... Sometimes it is extremely frustrating to do things, ... would be so much easier to use bash. ... "trick" I use is to first pick soft colour for the cells. ... Nothing native like bash on Windows to do simple tasks, ...
    (alt.os.linux.suse)
  • Re: How to properly set COLUMNS
    ... > so that the text wraps nicely no mater what size the windows has, ... > I'm having some problems setting the COLUMNS variable. ... > these variables are not exported in the shell script, ... > After a little digging I found out that bash sets COLUMNS if it receives ...
    (comp.unix.shell)
  • Re: Ruby wildcard command line argument auto expansion
    ... I am using Windows XP "cmd" shell. ... bash or C-shell. ... rab:rab/tmp $ echo *.java ...
    (comp.lang.ruby)