![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 | |
|
Programmer
Join Date: Aug 2005
Location: 0x0010 * 0x0091 + 0x0004
Posts: 65
Rep Power: 4
![]() |
Quote:
__________________
#if 0 /* in case someone actually tries to compile this */ <Jim_McNeat> Is there like a way to put a compiler in "Just trust me on that one" mode? |
|
|
|
|
|
|
#22 |
|
Newbie
Join Date: Feb 2008
Posts: 10
Rep Power: 0
![]() |
Re: How do I clear the screen?
Perhaps there is a way to call a new terminal to open with the remaining code while closing the old one? I have no idea how to do that... but that would guarantee a clear terminal/DOS window etc...
That is, unless System.out.print ("\033c");As far as the suggestion about the GUI, he/she is quite correct. A GUI just draws a new layer over the text and it appears to disappear. However making a GUI window of the right size, right color, centered in the computer screen, with font of the right size, right color centered in the GUI that accepts inputs and displays outputs is like five times the code you originally posted. Thus, making the GUI might be something of a pain. |
|
|
|
|
|
#23 |
|
Professional Programmer
|
Re: How do I clear the screen?
perhaps you should check the dates on topics...
__________________
Steven Skiena - Algorithms |
|
|
|
|
|
#24 | |
|
Professional Programmer
Join Date: Oct 2006
Posts: 257
Rep Power: 2
![]() |
Re: How do I clear the screen?
Quote:
|
|
|
|
|
|
|
#25 |
|
Programmer
Join Date: Mar 2008
Posts: 35
Rep Power: 0
![]() |
Re: How do I clear the screen?
you need to use
while (true) and you need if(again == 'y')
{
play = 1
else
break;
}
if(again == 'n')
{
play--;try this it might work |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|