Top Description Inners Fields Constructors Methods
org.fusesource.jansi.internal

public Class CLibrary

extends Object
Class Inheritance
Annotations
@SuppressWarnings:unused

Interface to access some low level POSIX functions, loaded by HawtJNI Runtime as jansi library.
See Also
JansiLoader

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CLibrary.Termios

termios structure for termios functions, describing a general terminal interface that is provided to control asynchronous communications ports

public static class
CLibrary.WinSize

Window sizes.

Field Summary

Modifier and TypeField and Description
public static boolean
public static boolean
public static final boolean
public static int
public static int
public static int
public static int
public static int
public static long
public static long
public static long
public static long
public static long
public static long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static native void
init()

public static native int
ioctl(int filedes, long request, int[] params)

Control a STREAMS device.

public static native int
ioctl(int filedes, long request, CLibrary.WinSize params)

public static native int

Returns:

isatty() returns 1 if fd is an open file descriptor referring to a terminal; otherwise 0 is returned, and errno is set to indicate the error
isatty
(int
file descriptor
fd
)

test whether a file descriptor refers to a terminal

public static native int

Returns:

0 on success
openpty
(int[]
master return value
amaster
,
int[]
slave return value
aslave
,
byte[]
filename return value
name
,
CLibrary.Termios
optional pty attributes
termios
,
CLibrary.WinSize
optional size
winsize
)

The openpty() function finds an available pseudoterminal and returns file descriptors for the master and slave in amaster and aslave.

public static native int
tcgetattr(int filedes, CLibrary.Termios termios)

public static native int
tcsetattr(int filedes, int optional_actions, CLibrary.Termios termios)

public static native String
ttyname(int filedes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HAVE_ISATTYback to summary
public static boolean HAVE_ISATTY
HAVE_TTYNAMEback to summary
public static boolean HAVE_TTYNAME
LOADEDback to summary
public static final boolean LOADED
STDERR_FILENOback to summary
public static int STDERR_FILENO
STDOUT_FILENOback to summary
public static int STDOUT_FILENO
TCSADRAINback to summary
public static int TCSADRAIN
TCSAFLUSHback to summary
public static int TCSAFLUSH
TCSANOWback to summary
public static int TCSANOW
TIOCGETAback to summary
public static long TIOCGETA
TIOCGETDback to summary
public static long TIOCGETD
TIOCGWINSZback to summary
public static long TIOCGWINSZ
TIOCSETAback to summary
public static long TIOCSETA
TIOCSETDback to summary
public static long TIOCSETD
TIOCSWINSZback to summary
public static long TIOCSWINSZ

Constructor Detail

CLibraryback to summary
public CLibrary()

Method Detail

initback to summary
private static native void init()
ioctlback to summary
public static native int ioctl(int filedes, long request, int[] params)

Control a STREAMS device.

See Also
IOCTL(3P) man-page
ioctlback to summary
public static native int ioctl(int filedes, long request, CLibrary.WinSize params)
isattyback to summary
public static native int isatty(int fd)

test whether a file descriptor refers to a terminal

Parameters
fd:int

file descriptor

Returns:int

isatty() returns 1 if fd is an open file descriptor referring to a terminal; otherwise 0 is returned, and errno is set to indicate the error

See Also
ISATTY(3) man-page, ISATTY(3P) man-page
openptyback to summary
public static native int openpty(int[] amaster, int[] aslave, byte[] name, CLibrary.Termios termios, CLibrary.WinSize winsize)

The openpty() function finds an available pseudoterminal and returns file descriptors for the master and slave in amaster and aslave.

Parameters
amaster:int[]

master return value

aslave:int[]

slave return value

name:byte[]

filename return value

termios:CLibrary.Termios

optional pty attributes

winsize:CLibrary.WinSize

optional size

Returns:int

0 on success

See Also
OPENPTY(3) man-page
tcgetattrback to summary
public static native int tcgetattr(int filedes, CLibrary.Termios termios)
tcsetattrback to summary
public static native int tcsetattr(int filedes, int optional_actions, CLibrary.Termios termios)
ttynameback to summary
public static native String ttyname(int filedes)
org.fusesource.jansi.internal back to summary

public Class CLibrary.Termios

extends Object
Class Inheritance

termios structure for termios functions, describing a general terminal interface that is provided to control asynchronous communications ports
See Also
TERMIOS(3) man-page

Field Summary

Modifier and TypeField and Description
public byte[]
public long
public long
public long
public long
public long
public long
public static int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static native void
init()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

c_ccback to summary
public byte[] c_cc
c_cflagback to summary
public long c_cflag
c_iflagback to summary
public long c_iflag
c_ispeedback to summary
public long c_ispeed
c_lflagback to summary
public long c_lflag
c_oflagback to summary
public long c_oflag
c_ospeedback to summary
public long c_ospeed
SIZEOFback to summary
public static int SIZEOF

Constructor Detail

Termiosback to summary
public Termios()

Method Detail

initback to summary
private static native void init()
org.fusesource.jansi.internal back to summary

public Class CLibrary.WinSize

extends Object
Class Inheritance

Window sizes.
See Also
IOCTL_TTY(2) man-page

Field Summary

Modifier and TypeField and Description
public static int
public short
public short
public short
public short

Constructor Summary

AccessConstructor and Description
public
public
WinSize(short ws_row, short ws_col)

Method Summary

Modifier and TypeMethod and Description
private static native void
init()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SIZEOFback to summary
public static int SIZEOF
ws_colback to summary
public short ws_col
ws_rowback to summary
public short ws_row
ws_xpixelback to summary
public short ws_xpixel
ws_ypixelback to summary
public short ws_ypixel

Constructor Detail

WinSizeback to summary
public WinSize()
WinSizeback to summary
public WinSize(short ws_row, short ws_col)

Method Detail

initback to summary
private static native void init()