Chat on IRC |
How to clear the screen in java
Posted by CodeRed [send private reply] at May 17, 2002, 07:00:10 AM
Just in the console mode, I'm not talking about graphics or that AWT crap, I'm looking for something similar to conio's clrscr()
Posted by taubz [send private reply] at May 17, 2002, 03:47:33 PM
I don't believe there's a way, since you only have access to the console through System.out/err which are just streams.
- taubz
Posted by AnyoneEB [send private reply] at May 17, 2002, 05:06:07 PM
just System.out.print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");that should do it :)
Posted by RedX [send private reply] at May 17, 2002, 05:25:57 PM
Or
System.out.print("Press reset to continue"); RedX
Posted by CodeRed [send private reply] at May 17, 2002, 07:24:33 PM
LOL, I tried what AnyoneEB suggested but it keeps the cursor at the bottom of the screen, not good. I don't need it anymore though, projects already been handed in.
Posted by unknown_lamer [send private reply] at May 18, 2002, 02:42:31 PM
you could send the \n's and then a bunch of control-As (which on at least a vt220 terminal means up one line) to get back the top.
Register as a new user | ||||||||