Enum Variable
- All Implemented Interfaces:
Serializable, Comparable<Variable>, java.lang.constant.Constable
Enumeration of readline configuration variables corresponding to inputrc settings.
- Author:
- Ståle W. Pedersen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionControls how readline indicates a terminal bell.If set to on, readline attempts to bind the control characters treated specially by the kernel's terminal driver to their readline equivalents.The string to insert at the beginning of the line when the insert-comment command is executed.The number of screen columns used to display possible matches when performing completion.If set to on, readline performs filename matching and completion in a case-insensitive fashion.If set to on, and completion-ignore-case is enabled, readline treats hyphens and underscores as equivalent.The length in characters of the common prefix of a list of possible completions that is displayed without modification.The number of possible completions that determines when the user is asked whether the list of possibilities should be displayed.If set to on, readline converts characters with the eighth bit set to an ASCII key sequence.If set to on, readline inhibits word completion.If set to on, readline displays control characters in a visible fashion when echoing.Controls whether readline starts in emacs or vi editing mode.If set to on, readline enables the application keypad when called.If set to on, tilde expansion is performed when readline attempts word completion.If set to on, the history code attempts to place the point at the same location on each history line retrieved with previous-history or next-history.Controls the scroll mode behavior when navigating through history.Sets the maximum number of history entries saved in the history list.If set to on, readline enables eight-bit input regardless of terminal claims.The string of characters that should terminate an incremental search.Sets readline's keymap.If set to on, completed directory names have a slash appended.If set to on, history lines that have been modified are displayed with a preceding asterisk.If set to on, completed names which are symbolic links to directories have a slash appended.If set to on, readline matches files whose names begin with a dot when performing filename completion.If set to on, menu completion displays the common prefix of the list of possible completions.If set to on, readline displays characters with the eighth bit set directly rather than as a meta-prefixed escape sequence.If set to on, readline uses an internal more-like pager to display a screenful of possible completions at a time.If set to on, readline displays completions with matches sorted horizontally in alphabetical order.If set to on, readline undoes all changes to history lines before returning when accept-line is executed.If set to on, words which have more than one possible completion cause the matches to be listed immediately.If set to on, words which have more than one possible completion without any possible partial completion cause the matches to be listed immediately.If set to on, this alters the default completion behavior when inserting a single match into the line.If set to on, a character denoting a file's type is appended to the filename when listing possible completions. -
Method Summary
Modifier and TypeMethodDescriptionstatic VariablefindVariable(String value) Finds a Variable by its inputrc string value.getValue()Returns the inputrc string representation of this variable.static VariableReturns the enum constant of this type with the specified name.static Variable[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BELL_STYLE
Controls how readline indicates a terminal bell. Values: none, visible, audible. -
BIND_TTY_SPECIAL_CHARS
If set to on, readline attempts to bind the control characters treated specially by the kernel's terminal driver to their readline equivalents. -
COMMENT_BEGIN
The string to insert at the beginning of the line when the insert-comment command is executed. -
COMPLETION_DISPLAY_WIDTH
The number of screen columns used to display possible matches when performing completion. -
COMPLETION_IGNORE_CASE
If set to on, readline performs filename matching and completion in a case-insensitive fashion. -
COMPLETION_MAP_CASE
If set to on, and completion-ignore-case is enabled, readline treats hyphens and underscores as equivalent. -
COMPLETION_PREFIX_DISPLAY_LENGTH
The length in characters of the common prefix of a list of possible completions that is displayed without modification. -
COMPLETION_QUERY_ITEMS
The number of possible completions that determines when the user is asked whether the list of possibilities should be displayed. -
CONVERT_META
If set to on, readline converts characters with the eighth bit set to an ASCII key sequence. -
DISABLE_COMPLETION
If set to on, readline inhibits word completion. -
EDITING_MODE
Controls whether readline starts in emacs or vi editing mode. -
ECHO_CONTROL_CHARACTERS
If set to on, readline displays control characters in a visible fashion when echoing. -
ENABLE_KEYPAD
If set to on, readline enables the application keypad when called. -
EXPAND_TILDE
If set to on, tilde expansion is performed when readline attempts word completion. -
HISTORY_PRESERVE_POINT
If set to on, the history code attempts to place the point at the same location on each history line retrieved with previous-history or next-history. -
HISTORY_SIZE
Sets the maximum number of history entries saved in the history list. -
HISTORY_SCROLL_MODE
Controls the scroll mode behavior when navigating through history. -
INPUT_META
If set to on, readline enables eight-bit input regardless of terminal claims. -
ISEARCH_TERMINATORS
The string of characters that should terminate an incremental search. -
KEYMAP
Sets readline's keymap. Valid keymap names are emacs, emacs-standard, vi, vi-move, vi-command, vi-insert. -
MARK_DIRECTORIES
If set to on, completed directory names have a slash appended. -
MARK_MODIFIED_LINES
If set to on, history lines that have been modified are displayed with a preceding asterisk. -
MARK_SYMLINKED_DIRECTORIES
If set to on, completed names which are symbolic links to directories have a slash appended. -
MATCH_HIDDEN_FILES
If set to on, readline matches files whose names begin with a dot when performing filename completion. -
MENU_COMPLETE_DISPLAY_PREFIX
If set to on, menu completion displays the common prefix of the list of possible completions. -
OUTPUT_META
If set to on, readline displays characters with the eighth bit set directly rather than as a meta-prefixed escape sequence. -
PAGE_COMPLETIONS
If set to on, readline uses an internal more-like pager to display a screenful of possible completions at a time. -
PRINT_COMPLETIONS_HORIZONTALLY
If set to on, readline displays completions with matches sorted horizontally in alphabetical order. -
REVERT_ALL_AT_NEWLINE
If set to on, readline undoes all changes to history lines before returning when accept-line is executed. -
SHOW_ALL_IF_AMBIGUOUS
If set to on, words which have more than one possible completion cause the matches to be listed immediately. -
SHOW_ALL_IF_UNMODIFIED
If set to on, words which have more than one possible completion without any possible partial completion cause the matches to be listed immediately. -
SKIP_COMPLETED_TEXT
If set to on, this alters the default completion behavior when inserting a single match into the line. -
VISIBLE_STATS
If set to on, a character denoting a file's type is appended to the filename when listing possible completions.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Returns the inputrc string representation of this variable.- Returns:
- the inputrc string value
-
findVariable
-