int i = System.in.read();Dave Tolls wrote:. . . "press <Enter> for more" or something? . . .
Campbell Ritchie wrote:I presume CUI means console user interface?
All things are lawful, but not all things are profitable.
Knute Snortum wrote:The problem with trying to execute "more" in a command window is that you are probably running "javaw" which doesn't create a command window. What about reading the output and putting it into a GUI widget with a scrollbar? Or creating a temporary file and launching Notepad? I assume you have this much already:
Why not post the code you have? That will make it easier to make suggestions.
Reading the output and inputting it into a GUI widget will yield a different result from what I'm trying to accomplish.
What I'm trying to accomplish is the copy of the "more" funcitonality.
All things are lawful, but not all things are profitable.
so if I don't want to spend a day refactoring the program...
All things are lawful, but not all things are profitable.
All things are lawful, but not all things are profitable.
"To do good, you actually have to do something." -- Yvon Chouinard
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|