This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Control over terminal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Control over terminal" Watch "Control over terminal" New topic
Author

Control over terminal

Tyler Hanson
Greenhorn

Joined: Dec 31, 2009
Posts: 9
Hi all,

So I was writing an app that will be running constantly, checking for input files and processing those files. It is multi threaded and I also had it wrapped in a neat swing gui to show which threads are busy, what state they are in if they are busy, etc. I had forgotten that my test environment (which was Fedora running under a VM where I ran X) was different from the final place, in which I don't have X, only terminal access.

So I'm wondering how do I gain control over the terminal window to update portions of it (like top does) in java?

The idea is that I would like to have it in basically two sections, section 1 is just the information, and I would still like to be able to issue commands to it (mostly the shutdown command). I'm not exactly familiar with interactive command line beyond being able to get from the command line, so any push in the right direction would be much appreciated. I have not been able to find much online, but that is probably because I am not exactly sure what to call it (as in what to search).

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Control over terminal
 
Similar Threads
Unix Tutorials
VisualGC help
Cmd alternative
Command to find out Linux desktop version?
Classpath? Duh, what?