Package org.jline.terminal.impl
Class TermiosData
java.lang.Object
org.jline.terminal.impl.TermiosData
Platform-independent holder for POSIX termios fields.
Mirrors the native struct termios layout: four flag words and a control-character
array. Used as an intermediate representation between JLine Attributes
and the actual native structure provided by JNI or FFM.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with all flags zeroed and all control characters set to 0. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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.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.
-
Field Details
-
NCCS
public static final int NCCSMaximumc_ccarray size across supported platforms (Linux NCCS=32, macOS/FreeBSD NCCS=20).- See Also:
-
TCSANOW
public static final int TCSANOWApply attribute changes immediately (tcsetattraction). Identical (0) on all supported platforms.- See Also:
-
-
Constructor Details
-
TermiosData
public TermiosData()Creates a new instance with all flags zeroed and all control characters set to 0.
-
-
Method Details
-
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. -
cc
public byte[] cc()Returns the control characters array.
-