Serializable
, Comparable<UnixLikeTerminal.CtrlCBehaviour>
public static enum UnixLikeTerminal.CtrlCBehaviour extends Enum<UnixLikeTerminal.CtrlCBehaviour>
Enum Constant | Description |
---|---|
CTRL_C_KILLS_APPLICATION |
Pressing ctrl+c will restore the terminal and kill the application as it normally does with terminal
applications.
|
TRAP |
Pressing ctrl+c doesn't kill the application, it will be added to the input queue as any other key stroke
|
Modifier and Type | Method | Description |
---|---|---|
static UnixLikeTerminal.CtrlCBehaviour |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static UnixLikeTerminal.CtrlCBehaviour[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnixLikeTerminal.CtrlCBehaviour TRAP
public static final UnixLikeTerminal.CtrlCBehaviour CTRL_C_KILLS_APPLICATION
System.exit(1)
for this.public static UnixLikeTerminal.CtrlCBehaviour[] values()
for (UnixLikeTerminal.CtrlCBehaviour c : UnixLikeTerminal.CtrlCBehaviour.values()) System.out.println(c);
public static UnixLikeTerminal.CtrlCBehaviour valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.