Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Network Virtual Terminal for Java 1.0 Alpha 1

    Download button

    No screenshots available
    Downloads: 624  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Guglielmo Lichtner | More programs
    The Apache License 2.0 / FREE
    January 19th, 2006, 17:03 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Network Virtual Terminal for Java description

    Network Virtual Terminal for Java is a library that can drive a terminal emulator.

    Network Virtual Terminal for Java is a library that can drive a terminal emulator connected to the application through a telnet session.

    Usage:

    The API consists of the interface nvt4j.Terminal . The implementation of this class is called nvt4j.impl.Terminal. To allow the user to connect to the application you need to listen for a tcp connection and then wrap a Terminal object around it:

    ServerSocket serverSocket = new ServerSocket(8000);
    Socket socket = serverSocket.accept();
    Terminal terminal = new nvt4j.impl.Terminal(socket);

    For example, to run the sample class Example.java from an xterm session, you can
    do this:

    user@localhost$ java -classpath nvt4j.jar Example &
    user@localhost$ telnet localhost 8000

    NVT4J uses the Telnet LINEMODE option to put the terminal driver (xterm in this case) in what the posix standard calls 'raw' or 'non-canonical' mode, so that it can receive all user inputs asap, instead of waiting for a new-line character.

    Unfortunately in pure Java there is no way to put the operating system console in
    raw mode. On Linux and similar systems this is done using the stty command, which is a native program which manipulates the terminal driver in the operating system.

    What's New in This Release:

    First alpha release. This code is quite limited but it already provides the basic functions needed to drive a terminal emulator for Java, namely putting the terminal driver in raw mode, turning off the cursor and client-side echo, and detecting the size of the terminal emulator window.

    This code has been tested only with xterm.



    Product's homepage

      


    TAGS:

    virtual terminal | network terminal | terminal library | network | virtual | terminal

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM