Class TermiosData

java.lang.Object
org.jline.terminal.impl.TermiosData

public class TermiosData extends Object
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
    Modifier and Type
    Field
    Description
    static final int
    Maximum c_cc array size across supported platforms (Linux NCCS=32, macOS/FreeBSD NCCS=20).
    static final int
    Apply attribute changes immediately (tcsetattr action).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance with all flags zeroed and all control characters set to 0.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    cc()
    Returns the control characters array.
    long
    Returns the control mode flags.
    void
    cflag(long value)
    Sets the control mode flags.
    long
    Returns the input mode flags.
    void
    iflag(long value)
    Sets the input mode flags.
    long
    Returns the local mode flags.
    void
    lflag(long value)
    Sets the local mode flags.
    long
    Returns the output mode flags.
    void
    oflag(long value)
    Sets the output mode flags.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NCCS

      public static final int NCCS
      Maximum c_cc array size across supported platforms (Linux NCCS=32, macOS/FreeBSD NCCS=20).
      See Also:
    • TCSANOW

      public static final int TCSANOW
      Apply attribute changes immediately (tcsetattr action). 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.