Re: Clear screen

From: DaiIchi (daiichi_at_agentnews.test.xhome.us)
Date: 11/12/03

  • Next message: John: "Re: help!!!"
    Date: Tue, 11 Nov 2003 23:36:34 -0800
    
    

    On Tue, 11 Nov 2003 16:52:45 -0500, "NeoPhreak" <admin@neophreak.com>
    wrote:

    >How would you clearn the screen in a console program???
    >
    >Thanks
    >NeoPhreak >.<
    >

    Depends on the operating system... on Windows 9x and most flavors of
    Unix (in a terminal window) you can use:

    System.out.println(((char) 27)+"[2J"); // ANSI clear screen...

    But NOTHING works in Windows NT. So you can write some JNI code, or
    do something silly like:

    for (int i=0; i<25; ++i) System.out.println();


  • Next message: John: "Re: help!!!"

    Relevant Pages

    • Re: What is the more popular UNIX flavor?
      ... about my experience with Solaris and Cygwin. ... installing packages. ... needing eg tftp you only need to activate on a Unix system. ... probably need installing first on the equivalent Windows system. ...
      (comp.unix.questions)
    • Re: Five Architectural Flaws in Windows Solved In Mac OS X
      ... But it is still an improvement over Unix, wherein *any executable* can be highly privileged and interact with the user. ... The usual security precautions prevent unauthorized people from doing this, but that's true on Windows also. ... I just got thru upgrading the wifes Mac to Tiger and hpfs is the default. ... This is a more advanced design that Unixes have been trying to duplicate by adding thread support. ...
      (comp.sys.mac.advocacy)
    • Re: Linux no threat to Microsoft
      ... originally developed for Unix. ... Windows has't come on any of the machines I've ever purchased. ... Yet over those years Linux Market Share on the desktop has actually ... philosophy of Apple - later adopted by Microsoft. ...
      (comp.os.linux.setup)
    • Re: OS X "Security" myths
      ... >> lot of UNIX systems down to their knees. ... >>> their code, so they concentrate on developing exploits for Windows, ... > It does tell me that there is not much "boast factor" for malware ... Just like the Hackers convention in Las Vegas known as ...
      (comp.sys.mac.advocacy)
    • Re: Wozu Linux privat einsetzen?
      ... > Open Source bzw. GNU sind nicht an eine bestimmte Plattform gebunden. ... Windows ist nun mal nicht OpenSource. ... > Unix ist genauso gewachsen wie DOS, OS/2, Windows. ...
      (de.comp.os.unix.linux.misc)