| Modifier and Type | Class and Description |
|---|---|
| protected static enum | |
| private static class | |
| protected static enum | |
| private class | |
| pack-priv static class | |
| protected static class | |
| protected static enum | LineReaderImpl.
Possible states in which the current readline operation may be in. |
| private static class | |
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected String | |
| protected final String | appName
The application name |
| protected LineReader. | |
| protected final BindingReader | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected final Buffer | |
| protected Map | |
| protected int | |
| protected List | |
| protected Completer | |
| protected CompletionMatcher | |
| protected int | |
| public static final long | |
| public static final String | |
| public static final long | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final String | |
| private static final String | |
| private static final String | |
| protected Display | |
| protected boolean | |
| protected Expander | |
| protected int | findChar
VI character find |
| protected int | |
| protected int | |
| public static final String | |
| public static final String | |
| private boolean | |
| private boolean | |
| protected Highlighter | |
| protected History | |
| protected Buffer | |
| protected boolean | |
| protected boolean | |
| protected String | |
| protected final Map | keyMaps
The terminal keys mapping |
| protected KillRing | |
| protected final ReentrantLock | lock
State lock |
| private static final int | |
| private static final int | |
| protected MaskingCallback | |
| private static final int | |
| private static final int | |
| protected Map | |
| protected int | |
| protected boolean | |
| protected int | |
| public static final char | |
| protected final Map | |
| protected boolean | |
| protected ParsedLine | |
| protected Parser | |
| protected Supplier | |
| protected AttributedString | |
| protected boolean | |
| protected LineReader. | |
| protected int | regionMark
Region state |
| protected int | |
| protected AttributedString | |
| protected boolean | |
| protected CharSequence | |
| private int | searchDir
VI history string search |
| protected boolean | |
| protected int | |
| private String | |
| protected StringBuffer | |
| protected final Size | |
| protected boolean | |
| protected int | |
| protected final AtomicBoolean | |
| protected LineReaderImpl. | |
| public static final int | TAB_WIDTH
Hides jdk.
Deprecated
use
DEFAULT_TAB_WIDTH and getTabWidth()
|
| protected String | |
| protected final Terminal | terminal
The terminal to use |
| protected UndoTree | |
| protected int | |
| protected final Map | |
| protected LineReaderImpl. | |
| protected Map | |
| protected String | yankBuffer
The vi yank buffer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private void | |
| public void | addCommandsInBuffer(Collection<String> commands)
Implements jdk.
|
| private AttributedString | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public boolean | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | bindConsoleChars(KeyMap<Binding> keyMap, Attributes attr)
Bind special chars defined by the terminal instead of the default bindings |
| private void | |
| protected AttributedStyle | |
| protected Map | |
| private boolean | |
| public void | |
| private int | |
| protected boolean | |
| protected void | |
| public boolean | |
| protected boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| protected LineReaderImpl. | |
| protected LineReaderImpl. | |
| private void | |
| protected boolean | |
| public boolean | |
| protected boolean | |
| public Map | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private int | |
| private int | |
| protected void | |
| protected boolean | |
| protected boolean | doComplete(LineReaderImpl.
|
| private boolean | |
| private void | |
| private String | |
| protected boolean | |
| protected boolean | doList(List<Candidate> possible, String completed, boolean runLoop, BiFunction<CharSequence, Boolean, CharSequence> escaper)
|
| protected boolean | doList(List<Candidate> possible, String completed, boolean runLoop, BiFunction<CharSequence, Boolean, CharSequence> escaper, boolean forSuggestion)
|
| protected boolean | |
| protected boolean | doMenu(List<Candidate> original, String completed, BiFunction<CharSequence, Boolean, CharSequence> escaper)
|
| protected <T> T | |
| protected String | |
| protected boolean | |
| protected boolean | Returns: true if it succeeded, false otherwiseThe start position startPos, int The end position. endPos, boolean If true, then the delete is part of a change operationg
(e.g. "c$" is change-to-end-of line, so we first must delete to end
of line to start the change isChange)Performs the vi "delete-to" action, deleting characters between a given span of the input line. |
| protected boolean | Returns: true if it worked, false if the cursor was not on a bracket character or if there was no matching bracket.Implements vi style bracket matching ("%" command). |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public KeyMap | |
| public void | |
| protected boolean | |
| public KeyMap | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private AttributedString | |
| protected boolean | |
| private int | |
| private int | |
| protected String | |
| protected String | Returns: the former contents of the buffer.Clear the buffer and add its contents to the history. |
| public void | |
| public boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private AttributedString | |
| public String | |
| public LineReader. | |
| pack-priv boolean | |
| protected int | Returns: 1 is square, 2 curly, 3 parent, or zero for none. The value will be negated if it is the closing form of the bracket.The character to check ch)Given a character determines what type of bracket it is (paren, square, curly, or none). |
| public Buffer | |
| public Map | |
| protected Comparator | |
| public Completer | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| protected AttributedStyle | |
| public AttributedString | Returns: the displayed string including the buffer, left prompts and the help belowa list to store the secondary prompts secondaryPrompts)Compute the full string to be displayed with the left, right and secondary prompts |
| public Expander | |
| private CharSequence | |
| protected Comparator | |
| private AttributedString | |
| public Highlighter | |
| public History | |
| pack-priv int | |
| public String | Returns: the name of the key mapping. This will be the canonical name of the current mode of the key map and may not reflect the name that was used withsetKeyMap(String).Implements jdk. Returns the name of the current key mapping. |
| public Map | |
| public KeyMap | |
| public String | |
| pack-priv long | |
| protected String | |
| protected String | |
| public ParsedLine | |
| public Parser | |
| public LineReader. | |
| public int | |
| public String | |
| pack-priv String | |
| protected int | |
| public String | |
| public Terminal | |
| public Object | |
| public Map | |
| private boolean | |
| protected Widget | |
| public Map | |
| protected synchronized void | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| pack-priv void | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private AttributedString | |
| private AttributedString | insertSecondaryPrompts(AttributedString strAtt, List<AttributedString> prompts, boolean computePrompts)
|
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: True if it is a delimiterThe character to test c)Checks to see if the specified character is a delimiter. |
| protected boolean | |
| protected boolean | |
| protected boolean | isInViMoveOperation()
Returns: true if line reader is in the middle of doing a change-to delete-to or yank-to. |
| public boolean | |
| public boolean | isReading()
Implements jdk. Check if a thread is currently in a |
| public boolean | |
| private boolean | |
| protected boolean | |
| protected boolean | Returns: true if the character is a whitespaceThe character to check c)Checks to see if a character is a whitespace character. |
| protected boolean | |
| private String | |
| protected boolean | |
| public boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private boolean | |
| private List | |
| private String | |
| public KeyMap | |
| protected boolean | |
| protected boolean | |
| private void | |
| public boolean | |
| protected boolean | Returns: true if the move was successfulIf true, move forward next, int The number of entries to move count)Used in "vi" mode for argumented history move, to move a specific number of history entries forward or back. |
| protected boolean | Returns: true if successful, false otherwisetrue to go to the next, false for the previous.Move up or down the history tree. |
| private Widget | |
| protected boolean | |
| protected boolean | |
| public LineReader | option(LineReader.
Implements jdk.
|
| protected boolean | |
| public int | |
| pack-priv void | |
| public void | printAbove(String str)
Implements jdk. Prints a line above the prompt and redraw everything. |
| public void | printAbove(AttributedString str)
Implements jdk. Prints a string before the prompt and redraw everything. |
| pack-priv void | |
| pack-priv void | |
| private int | |
| private void | |
| private void | |
| public void | putString(final CharSequence
the char sequence to write in the buffer str)Write out the specified string to the buffer and the output stream. |
| protected boolean | |
| protected boolean | |
| public Binding | Returns: the decoded binding ornull if the end of
stream has been reachedthe KeyMap to use for decoding the input stream keys)Read from the input stream and decode an operation from the key map. |
| public Binding | |
| public int | Returns: the character, or -1 if an EOF is received.Read a character from the terminal. |
| public String | Returns: A line that is read from the terminal, can never be null.Implements jdk. Read the next line and return the contents of the buffer. |
| public String | Returns: A line that is read from the terminal, can never be null.The mask character, mask)null or 0.Implements jdk. Read the next line with the specified character mask. |
| public String | Returns: A line that is read from the terminal, can never be null.The prompt to issue to the terminal, may be null. prompt)Implements jdk. Read a line from the in |
| public String | Returns: A line that is read from the terminal, can never be null.The prompt to issue to the terminal, may be null. prompt, Character The mask character, mask)null or 0.Implements jdk. Read a line from the in |
| public String | Returns: A line that is read from the terminal, can never be null.The prompt to issue to the terminal, may be null. prompt, Character The mask character, mask, String null or 0.A string that will be set for editing. buffer)Implements jdk. Read a line from the in |
| public String | Returns: A line that is read from the terminal, can never be null.The prompt to issue to the terminal, may be null. prompt, String The prompt to issue to the right of the terminal, may be null. rightPrompt, Character The mask character, mask, String null or 0.A string that will be set for editing. buffer)Implements jdk. Read a line from the in |
| public String | Returns: A line that is read from the terminal, can never be null.The prompt to issue to the terminal, may be null. prompt, String The prompt to issue to the right of the terminal, may be null. rightPrompt, MaskingCallback The callback used to mask parts of the edited line. maskingCallback, String A string that will be set for editing. buffer)Implements jdk. Read a line from the in |
| public MouseEvent | readMouseEvent()
Implements jdk. Read a mouse event when the |
| private void | |
| public boolean | |
| protected void | |
| protected boolean | |
| public boolean | |
| private void | |
| public void | runMacro(String macro)
Implements jdk. Push back a key sequence that will be later consumed by the line reader. |
| public KeyMap | |
| public int | Returns: index where this substring has been found, or -1 else.substring to search for. searchTerm, int the index from which on to search startIndex)Search backward in history from a given position. |
| public int | Returns: index where the substring has been found, or -1 else.substring to search for. searchTerm)Search backwards in history from the current position. |
| public int | |
| public int | |
| public int | Returns: index where this substring has been found, or -1 else.substring to search for. searchTerm, int the index from which on to search startIndex)Search forward in history from a given position. |
| public int | Returns: index where the substring has been found, or -1 else.substring to search for. searchTerm)Search forwards in history from the current position. |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public void | |
| protected void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | Returns: true if the keymap was set, or false if the keymap is not recognized.The name of the keymap to switch to name)Implements jdk. Sets the current keymap by name. |
| protected boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setVariable(String name, Object value)
Implements jdk.
|
| protected int | |
| protected LineReaderImpl. | |
| protected void | toColumns(Object items, int width, int maxWidth, AttributedStringBuilder sb, Candidate selection, String completed, boolean rowsFirst, boolean doMenuList, int[] out)
|
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public void | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public LineReader | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: true if it succeeded, false otherwiseDeletes the previous character from the cursor position |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public KeyMap | |
| protected boolean | |
| protected boolean | |
| protected String | Returns: The remaped operationThe incoming operation to remap op)This method is calling while doing a delete-to ("d"), change-to ("c"), or yank-to ("y") and it filters out only those movement operations that are allowable during those operations. |
| protected boolean | Returns: true if it succeeded, false otherwiseDeletes the character you are sitting on and sucks the rest of the line in from the right. |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private int | |
| protected boolean | |
| protected boolean | Returns: true if the search was successfulImplements vi search ("/" or "?"). |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public KeyMap | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public KeyMap | |
| protected boolean | Returns: truePasts the yank buffer to the right of the current cursor position and moves the cursor to the end of the pasted region. |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: true if it succeeded, false otherwiseImplements the vi change character command (in move-mode "r" followed by the character to change to). |
| protected boolean | |
| protected boolean | |
| private int | |
| public KeyMap | |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: true if it succeeded, false otherwiseSwitches the case of the current character from upper to lower or lower to upper as necessary and advances the cursor one position to the right. |
| protected boolean | |
| protected boolean | |
| protected boolean | Returns: true if the yank succeededThe starting position from which to yank startPos, int The ending position to which to yank endPos)Implement the "vi" yank-to operation. |
| protected boolean | |
| protected boolean | |
| protected static CompletingParsedLine | |
| public boolean | |
| public boolean | |
| public void |