|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.termios.Termios
public final class Termios
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 |
---|
private long termios
Constructor Detail |
---|
public Termios()
public Termios(FileDescriptor fd)
Method Detail |
---|
private long malloc()
private void free(long termios)
protected void finalize()
finalize
in class Object
public Termios get(FileDescriptor fd)
private static void get(long termios, int fd)
public Termios set(FileDescriptor fd, Action action)
private static void set(long termios, int fd, Action action)
public Termios set(FileDescriptor fd)
public Termios set(Mode mode, boolean on)
public boolean get(Mode mode)
public Termios set(Speed speed)
public Speed getInputSpeed()
public Speed getOutputSpeed()
public Termios set(Special special, char val)
public char get(Special special)
public Termios setRaw()
private void setRaw(long termios)
public static void sendBreak(FileDescriptor fd, int duration)
private static void sendBreak(int fd, int duration)
public static void drain(FileDescriptor fd)
private static void drain(int fd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |