Re: Terminal app
Martin Gregorie wrote:
Nigel Wade wrote:
mnml wrote:
Hi,
I am trying to code a terminal application. I would like to know if
there is "something" I can use from the java Api to avoid redrawing
all the characters on the screen.
thanks
T
I have no idea if this is the sort of thing you are looking for, but have a
look
for yourself:
http://sourceforge.net/projects/javacurses
I have never use the above, but I have in the past used the UNIX curses
library
which is/was a library for addressing text based terminals/consoles in a
"graphical" way.
This may not be what the OP wants. I just downloaded it to take a look.
There is almost no documentation apart from Javadocs output from the
classes, i.e. no really explanatory overview and no example code. It
looks to me as it if its meant to be an exact analogue of the C curses
library, allowing a Java program to handle screens and forms on a
console screen rather than painting it inside an AWT or Swing window.
I assumed from what the OP said that "terminal application" was an application
running within a terminal, and "redrawing all the characters on the screen" is
exactly what curses did for you.
The description in the original post was limited, so we have to fill in the gaps
and guess what was intended. Because of that I didn't download any info on the
package, I left that as an exercise for the OP...
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555