Class NativeSignalHandler

java.lang.Object
org.jline.terminal.impl.NativeSignalHandler
All Implemented Interfaces:
Terminal.SignalHandler

public final class NativeSignalHandler extends Object implements Terminal.SignalHandler
Implementation of SignalHandler for native signal handling.

The NativeSignalHandler class provides an implementation of the SignalHandler interface that represents native signal handlers. It defines two special instances that correspond to the standard POSIX signal dispositions:

  • SIG_DFL - The default signal handler
  • SIG_IGN - The signal handler that ignores the signal

This class is used internally by terminal implementations to represent native signal handlers. It cannot be instantiated directly, and its handle(Signal) method throws an UnsupportedOperationException because native signal handling is performed by the underlying platform, not by Java code.

See Also: