Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Control over terminal

Tyler Hanson
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic