Class PosixSysTerminal

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, TerminalExt, Terminal

public class PosixSysTerminal extends AbstractPosixTerminal
Terminal implementation for POSIX systems using system streams.

The PosixSysTerminal class provides a terminal implementation for POSIX systems (Linux, macOS, etc.) that uses the system standard input and output streams. It extends the AbstractPosixTerminal class and adds functionality specific to system stream-based terminals.

This implementation is used when connecting to the actual system terminal, such as when running a console application in a terminal window. It provides access to the standard input and output streams, allowing for interaction with the user through the terminal.

Key features of this implementation include:

  • Direct access to system standard input and output
  • Support for terminal attributes and size changes
  • Support for non-blocking I/O
  • Automatic restoration of terminal state on shutdown
See Also: