public enum PtyMode extends Enum<PtyMode>
Enum Constant and Description |
---|
CS7
7 bit mode.
|
CS8
8 bit mode.
|
ECHO
Enable echoing.
|
ECHOCTL
Echo control characters as ^(Char).
|
ECHOE
Visually erase chars.
|
ECHOK
Kill character discards current line.
|
ECHOKE
Visual erase for line kill.
|
ECHONL
Echo NL even if ECHO is off.
|
ICANON
Canonicalize input lines.
|
ICRNL
Map CR to NL on input.
|
IEXTEN
Enable extensions.
|
IGNCR
Ignore CR on input.
|
IGNPAR
The ignore parity flag.
|
IMAXBEL
Ring bell on input queue full.
|
INLCR
Map NL into CR on input.
|
INPCK
Enable checking of parity errors.
|
ISIG
Enable signals INTR, QUIT, [D]SUSP.
|
ISTRIP
Strip 8th bit off characters.
|
IUCLC
Translate uppercase characters to lowercase.
|
IXANY
Any char will restart after stop.
|
IXOFF
Enable input flow control.
|
IXON
Enable output flow control.
|
NOFLSH
Don't flush after interrupt.
|
OCRNL
Translate carriage return to newline (output).
|
OLCUC
Convert lowercase to uppercase.
|
ONLCR
Map NL to CR-NL.
|
ONLRET
Newline performs a carriage return (output).
|
ONOCR
Translate newline to carriage return-newline (output).
|
OPOST
Enable output processing.
|
PARENB
Parity enable.
|
PARMRK
Mark parity and framing errors.
|
PARODD
Odd parity, else even.
|
PENDIN
Retype pending input.
|
TOSTOP
Stop background jobs from output.
|
TTY_OP_ISPEED
Specifies the input baud rate in bits per second.
|
TTY_OP_OSPEED
Specifies the output baud rate in bits per second.
|
VDISCARD
Toggles the flushing of terminal output.
|
VDSUSP
Another suspend character.
|
VEOF
End-of-file character (sends EOF from the terminal).
|
VEOL
End-of-line character in addition to carriage return and/or line-feed.
|
VEOL2
Additional end-of-line character.
|
VERASE
Erase the character to left of the cursor.
|
VFLUSH
Character to flush output.
|
VINTR
Interrupt character; 255 if none.
|
VKILL
Kill the current input line.
|
VLNEXT
Enter the next character typed literally, even if it is a special character
|
VQUIT
The quit character (sends SIGQUIT signal on POSIX systems).
|
VREPRINT
Reprints the current input line.
|
VSTART
Continues paused output (normally control-Q).
|
VSTATUS
Prints system status line (load, command, pid, etc).
|
VSTOP
Pauses output (normally control-S).
|
VSUSP
Suspends the current program.
|
VSWTCH
Switch to a different shell layer.
|
VWERASE
Erases a word left of cursor.
|
XCASE
Enable input and output of uppercase characters by preceding their
lowercase equivalents with "\".
|
Modifier and Type | Field and Description |
---|---|
static Integer |
FALSE_SETTING |
static Set<PtyMode> |
MODES
|
static Integer |
TRUE_SETTING |
static byte |
TTY_OP_END |
Modifier and Type | Method and Description |
---|---|
static Map<PtyMode,Integer> |
createEnabledOptions(Collection<PtyMode> options) |
static Map<PtyMode,Integer> |
createEnabledOptions(PtyMode... options) |
static PtyMode |
fromInt(int b) |
static boolean |
getBooleanSettingValue(int v) |
static boolean |
getBooleanSettingValue(Map<PtyMode,?> modes,
PtyMode m) |
static boolean |
getBooleanSettingValue(Object v) |
static Set<PtyMode> |
resolveEnabledOptions(Map<PtyMode,?> modes,
Collection<PtyMode> options) |
static Set<PtyMode> |
resolveEnabledOptions(Map<PtyMode,?> modes,
PtyMode... options) |
int |
toInt() |
static PtyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PtyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PtyMode VINTR
public static final PtyMode VQUIT
public static final PtyMode VERASE
public static final PtyMode VKILL
public static final PtyMode VEOF
public static final PtyMode VEOL
public static final PtyMode VEOL2
public static final PtyMode VSTART
public static final PtyMode VSTOP
public static final PtyMode VSUSP
public static final PtyMode VDSUSP
public static final PtyMode VREPRINT
public static final PtyMode VWERASE
public static final PtyMode VLNEXT
public static final PtyMode VFLUSH
public static final PtyMode VSWTCH
public static final PtyMode VSTATUS
public static final PtyMode VDISCARD
public static final PtyMode IGNPAR
public static final PtyMode PARMRK
public static final PtyMode INPCK
public static final PtyMode ISTRIP
public static final PtyMode INLCR
public static final PtyMode IGNCR
public static final PtyMode ICRNL
public static final PtyMode IUCLC
public static final PtyMode IXON
public static final PtyMode IXANY
public static final PtyMode IXOFF
public static final PtyMode IMAXBEL
public static final PtyMode ISIG
public static final PtyMode ICANON
public static final PtyMode XCASE
public static final PtyMode ECHO
public static final PtyMode ECHOE
public static final PtyMode ECHOK
public static final PtyMode ECHONL
public static final PtyMode NOFLSH
public static final PtyMode TOSTOP
public static final PtyMode IEXTEN
public static final PtyMode ECHOCTL
public static final PtyMode ECHOKE
public static final PtyMode PENDIN
public static final PtyMode OPOST
public static final PtyMode OLCUC
public static final PtyMode ONLCR
public static final PtyMode OCRNL
public static final PtyMode ONOCR
public static final PtyMode ONLRET
public static final PtyMode CS7
public static final PtyMode CS8
public static final PtyMode PARENB
public static final PtyMode PARODD
public static final PtyMode TTY_OP_ISPEED
public static final PtyMode TTY_OP_OSPEED
public static final byte TTY_OP_END
public static final Integer FALSE_SETTING
public static final Integer TRUE_SETTING
public static PtyMode[] values()
for (PtyMode c : PtyMode.values()) System.out.println(c);
public static PtyMode 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 nullpublic int toInt()
public static PtyMode fromInt(int b)
public static Map<PtyMode,Integer> createEnabledOptions(PtyMode... options)
options
- The options to enable - ignored if null
/emptyMap
where all the specified PtyMode
s have TRUE_SETTING
public static Map<PtyMode,Integer> createEnabledOptions(Collection<PtyMode> options)
options
- The options to enable - ignored if null
/emptyMap
where all the specified PtyMode
s have TRUE_SETTING
public static Set<PtyMode> resolveEnabledOptions(Map<PtyMode,?> modes, PtyMode... options)
public static Set<PtyMode> resolveEnabledOptions(Map<PtyMode,?> modes, Collection<PtyMode> options)
modes
- The PTY settings - ignored if null
/emptyoptions
- The options that should be enabledSet
of all the PtyMode
s that appeared
in the settings and were enabledgetBooleanSettingValue(Map, PtyMode)
public static boolean getBooleanSettingValue(Map<PtyMode,?> modes, PtyMode m)
modes
- The current modes Map
-ingm
- The required PtyMode
true
if all of these conditions hold:
null
/emptynull
Number
Number.intValue()
is non-zerogetBooleanSettingValue(Object)
public static boolean getBooleanSettingValue(Object v)
v
- The value to be testedtrue
if all of these conditions hold:
Number
Number.intValue()
is non-zerogetBooleanSettingValue(int)
public static boolean getBooleanSettingValue(int v)
v
- The setting valuetrue
if value is non-zeroCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.