Package org.jline.terminal
Interface Terminal.SignalHandler
-
- All Known Implementing Classes:
NativeSignalHandler
- Enclosing interface:
- Terminal
public static interface Terminal.SignalHandler
The SignalHandler defines the interface used to trap signals and perform specific behaviors.
-
-
Field Summary
Fields Modifier and Type Field Description static Terminal.SignalHandler
SIG_DFL
TheSIG_DFL
value can be used to specify that the JVM default behavior should be used to handle this signal.static Terminal.SignalHandler
SIG_IGN
TheSIG_IGN
value can be used to ignore this signal and not perform any special processing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handle(Terminal.Signal signal)
Handle the signal.
-
-
-
Field Detail
-
SIG_DFL
static final Terminal.SignalHandler SIG_DFL
TheSIG_DFL
value can be used to specify that the JVM default behavior should be used to handle this signal.
-
SIG_IGN
static final Terminal.SignalHandler SIG_IGN
TheSIG_IGN
value can be used to ignore this signal and not perform any special processing.
-
-
Method Detail
-
handle
void handle(Terminal.Signal signal)
Handle the signal.- Parameters:
signal
- the signal
-
-