Stdout Menu - How?

Status
Nicht offen für weitere Antworten.
G

Glo

Gast
Hi all!


I would like to write a command line tool. The tool should provide a main menu and submenus.
If the user chooses a submenu from the main menu a menu transition should be triggered and the chosen submenu should be displayed.
My question:

Is there a way to write on top of the menu that is currently displayed? (It looks more elegant if the old menu is overwritten so that the user cannot scroll up and still see the old menu. )

Thanks for your help.

Glo
 
B

Beni

Gast
Standard Java just allows to write one character after another, nothing more. However, you might write some empty lines to "clear" the screen.
 
G

Guest

Gast
What is a cls method?
Write some empty lines to clear ? But then I could as well write my new menu instead of empty lines...
Can you explain more precisely what you mean by writing empty lines?

Ta,

Gloria
 
B

Beni

Gast
cls is the command to clear the command prompt under windows.

I mean just to execute several times "System.out.println();"
 
G

Glo

Gast
Well....
And there is no other way?
I am looking for something like a seek function so I could seek back to the first char on the prompt and overwrite all

(sorry for not knowing cls. I am a linux and Mac OS user)

Thanx

Glo
 
Status
Nicht offen für weitere Antworten.

Ähnliche Java Themen

Neue Themen


Oben