This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma 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 Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Control over terminal" Watch "Control over terminal" New topic

Control over terminal

Tyler Hanson

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).

I agree. Here's the link:
subject: Control over terminal
It's not a secret anymore!