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, input/output speeds,
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 and speeds 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.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 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 and speeds 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. -
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.
-