Class PosixSysTerminal

All Implemented Interfaces:
Closeable, AutoCloseable, Terminal

public class PosixSysTerminal extends AbstractPosixTerminal
A POSIX system terminal implementation that provides native signal handling and integrates with the system's PTY.
  • Field Details

    • input

      protected final InputStream input
      The terminal input stream.
    • output

      protected final OutputStream output
      The terminal output stream.
    • nativeHandlers

      protected final Map<Signal,Object> nativeHandlers
      Map of signals to their native handlers.
    • closer

      protected final ShutdownHooks.Task closer
      Shutdown hook task for cleanup.
  • Constructor Details

    • PosixSysTerminal

      public PosixSysTerminal(String name, String type, Pty pty, boolean nativeSignals) throws IOException
      Constructs a PosixSysTerminal with the specified parameters.
      Parameters:
      name - the terminal name
      type - the terminal type
      pty - the pseudo-terminal to use
      nativeSignals - whether to enable native signal handling
      Throws:
      IOException - if an I/O error occurs during initialization
  • Method Details