- java.lang.Object
-
- org.jline.terminal.impl.TermiosData
-
public class TermiosData extends java.lang.ObjectPlatform-independent holder for POSIX termios fields.Mirrors the native
struct termioslayout: four flag words, input/output speeds, and a control-character array. Used as an intermediate representation between JLineAttributesand the actual native structure provided by JNI or FFM.
-
-
Constructor Summary
Constructors Constructor Description TermiosData()Creates a new instance with all flags and speeds zeroed and all control characters set to 0.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]cc()Returns the control characters array.longcflag()Returns the control mode flags.voidcflag(long value)Sets the control mode flags.longiflag()Returns the input mode flags.voidiflag(long value)Sets the input mode flags.longispeed()Returns the input speed (c_ispeed).voidispeed(long value)Sets the input speed (c_ispeed).longlflag()Returns the local mode flags.voidlflag(long value)Sets the local mode flags.longoflag()Returns the output mode flags.voidoflag(long value)Sets the output mode flags.longospeed()Returns the output speed (c_ospeed).voidospeed(long value)Sets the output speed (c_ospeed).
-
-
-
Field Detail
-
NCCS
public static final int NCCS
Maximumc_ccarray size across supported platforms (Linux NCCS=32, macOS/FreeBSD NCCS=20).- See Also:
- Constant Field Values
-
TCSANOW
public static final int TCSANOW
Apply attribute changes immediately (tcsetattraction). Identical (0) on all supported platforms.- See Also:
- Constant Field Values
-
-
Method Detail
-
iflag
public long iflag()
Returns the input mode flags.
-
iflag
public void iflag(long value)
Sets the input mode flags.
-
oflag
public long oflag()
Returns the output mode flags.
-
oflag
public void oflag(long value)
Sets the output mode flags.
-
cflag
public long cflag()
Returns the control mode flags.
-
cflag
public void cflag(long value)
Sets the control mode flags.
-
lflag
public long lflag()
Returns the local mode flags.
-
lflag
public void lflag(long value)
Sets the local mode flags.
-
ispeed
public long ispeed()
Returns the input speed (c_ispeed).
-
ispeed
public void ispeed(long value)
Sets the input speed (c_ispeed).
-
ospeed
public long ospeed()
Returns the output speed (c_ospeed).
-
ospeed
public void ospeed(long value)
Sets the output speed (c_ospeed).
-
cc
public byte[] cc()
Returns the control characters array.
-
-