Enum Signal

java.lang.Object
java.lang.Enum<Signal>
org.aesh.terminal.tty.Signal
All Implemented Interfaces:
Serializable, Comparable<Signal>, java.lang.constant.Constable

public enum Signal extends Enum<Signal>
Terminal signals that can be sent to a process.
Author:
Ståle W. Pedersen
  • Enum Constant Details

    • INT

      public static final Signal INT
      Interrupt, usually caused by Ctrl-c or the ASCII code 3
    • QUIT

      public static final Signal QUIT
      Usually works like INT, caused by Ctrl-\
    • SUSP

      public static final Signal SUSP
      Works like INT and QUIT, caused by Ctrl-z. The default action is to suspend the process.
    • EOF

      public static final Signal EOF
      End of file, first send end-of-file, then causes the next read to send end of file. Ctrl-d by default.
    • CONT

      public static final Signal CONT
      Wake up. This will un-suspend a stopped process.
    • INFO

      public static final Signal INFO
      Request for status information about the process.
    • WINCH

      public static final Signal WINCH
      Window resize
  • Method Details

    • values

      public static Signal[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Signal valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null