frysk.sys.termios
Class Termios

java.lang.Object
  extended by frysk.sys.termios.Termios

public final class Termios
extends Object

Manipulates a terminal bound to FileDescriptor.


Field Summary
private  long termios
           
 
Constructor Summary
Termios()
           
Termios(FileDescriptor fd)
           
 
Method Summary
static void drain(FileDescriptor fd)
          Waits until all output has been sent.
private static void drain(int fd)
           
protected  void finalize()
           
private  void free(long termios)
           
 Termios get(FileDescriptor fd)
          Refresh this Termios with the terminal settings from FD.
private static void get(long termios, int fd)
           
 boolean get(Mode mode)
          Get a mode.
 char get(Special special)
          Get special character field.
 Speed getInputSpeed()
          Get the input speed in baud.
 Speed getOutputSpeed()
          Get the output speed in baud.
private  long malloc()
           
static void sendBreak(FileDescriptor fd, int duration)
          Sends a continuous stream of zero-valued bits - the BREAK.
private static void sendBreak(int fd, int duration)
           
 Termios set(FileDescriptor fd)
          Set FD's terminal settings.
 Termios set(FileDescriptor fd, Action action)
          Set FD's terminal settings.
private static void set(long termios, int fd, Action action)
           
 Termios set(Mode mode, boolean on)
          Enable or disable a mode.
 Termios set(Special special, char val)
          Set special character field to val.
 Termios set(Speed speed)
          Set the speed of input and output in baud.
 Termios setRaw()
          Adjust Termios so that it is "raw".
private  void setRaw(long termios)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

termios

private long termios
Constructor Detail

Termios

public Termios()

Termios

public Termios(FileDescriptor fd)
Method Detail

malloc

private long malloc()

free

private void free(long termios)

finalize

protected void finalize()
Overrides:
finalize in class Object

get

public Termios get(FileDescriptor fd)
Refresh this Termios with the terminal settings from FD.


get

private static void get(long termios,
                        int fd)

set

public Termios set(FileDescriptor fd,
                   Action action)
Set FD's terminal settings.


set

private static void set(long termios,
                        int fd,
                        Action action)

set

public Termios set(FileDescriptor fd)
Set FD's terminal settings.


set

public Termios set(Mode mode,
                   boolean on)
Enable or disable a mode.


get

public boolean get(Mode mode)
Get a mode.


set

public Termios set(Speed speed)
Set the speed of input and output in baud.


getInputSpeed

public Speed getInputSpeed()
Get the input speed in baud.


getOutputSpeed

public Speed getOutputSpeed()
Get the output speed in baud.


set

public Termios set(Special special,
                   char val)
Set special character field to val.


get

public char get(Special special)
Get special character field.


setRaw

public Termios setRaw()
Adjust Termios so that it is "raw".


setRaw

private void setRaw(long termios)

sendBreak

public static void sendBreak(FileDescriptor fd,
                             int duration)
Sends a continuous stream of zero-valued bits - the BREAK.


sendBreak

private static void sendBreak(int fd,
                              int duration)

drain

public static void drain(FileDescriptor fd)
Waits until all output has been sent.


drain

private static void drain(int fd)