- CandidateCycleCompletionHandler - Class in jline
-
A
CompletionHandler
that deals with multiple distinct completions
by cycling through each one every time tab is pressed.
- CandidateCycleCompletionHandler() - Constructor for class jline.CandidateCycleCompletionHandler
-
- CandidateListCompletionHandler - Class in jline
-
A
CompletionHandler
that deals with multiple distinct completions
by outputting the complete list of possibilities to the console.
- CandidateListCompletionHandler() - Constructor for class jline.CandidateListCompletionHandler
-
- CHANGE_CASE - Static variable in interface jline.ConsoleOperations
-
Operation that toggles between uppercase and lowercase.
- CHANGE_META - Static variable in interface jline.ConsoleOperations
-
Operation that
- checkBackspace() - Method in class jline.UnixTerminal
-
- ClassNameCompletor - Class in jline
-
A Completor implementation that completes java class names.
- ClassNameCompletor() - Constructor for class jline.ClassNameCompletor
-
Complete candidates using all the classes available in the
java CLASSPATH.
- ClassNameCompletor(SimpleCompletor.SimpleCompletorFilter) - Constructor for class jline.ClassNameCompletor
-
- clear() - Method in class jline.History
-
Clear the history buffer
- CLEAR_LINE - Static variable in interface jline.ConsoleOperations
-
Operation that clears whatever text is on the current line.
- CLEAR_SCREEN - Static variable in interface jline.ConsoleOperations
-
Operation that clears the screen.
- clearBuffer() - Method in class jline.CursorBuffer
-
- clearScreen() - Method in class jline.ConsoleReader
-
Clear the screen by issuing the ANSI "clear screen" code.
- clone() - Method in class jline.SimpleCompletor
-
- clreol() - Static method in class jline.ANSIBuffer.ANSICodes
-
Removes all characters from the current cursor position until
the end of the line.
- clrscr() - Static method in class jline.ANSIBuffer.ANSICodes
-
Clears the screen and moves the cursor to the home postition.
- complete(String, int, List) - Method in class jline.ArgumentCompletor
-
- complete(ConsoleReader, List, int) - Method in class jline.CandidateCycleCompletionHandler
-
- complete(ConsoleReader, List, int) - Method in class jline.CandidateListCompletionHandler
-
- complete(ConsoleReader, List, int) - Method in interface jline.CompletionHandler
-
- complete(String, int, List) - Method in interface jline.Completor
-
Populates candidates with a list of possible
completions for the buffer.
- COMPLETE - Static variable in interface jline.ConsoleOperations
-
Operation that performs completion operation on the current word.
- complete(String, int, List) - Method in class jline.FileNameCompletor
-
- complete(String, int, List) - Method in class jline.MultiCompletor
-
- complete(String, int, List) - Method in class jline.NullCompletor
-
Returns -1 always, indicating that the the buffer is never
handled.
- complete(String, int, List) - Method in class jline.SimpleCompletor
-
- CompletionHandler - Interface in jline
-
Handler for dealing with candidates for tab-completion.
- Completor - Interface in jline
-
A Completor is the mechanism by which tab-completion candidates
will be resolved.
- ConsoleOperations - Interface in jline
-
Symbolic constants for Console operations and virtual key bindings.
- ConsoleReader - Class in jline
-
A reader for console applications.
- ConsoleReader() - Constructor for class jline.ConsoleReader
-
- ConsoleReader(InputStream, Writer) - Constructor for class jline.ConsoleReader
-
Create a new reader using the specified
InputStream
for input and
the specific writer for output, using the default keybindings resource.
- ConsoleReader(InputStream, Writer, InputStream) - Constructor for class jline.ConsoleReader
-
- ConsoleReader(InputStream, Writer, InputStream, Terminal) - Constructor for class jline.ConsoleReader
-
Create a new reader.
- ConsoleReaderInputStream - Class in jline
-
- ConsoleReaderInputStream(ConsoleReader) - Constructor for class jline.ConsoleReaderInputStream
-
- ConsoleRunner - Class in jline
-
A pass-through application that sets the system input stream to a
ConsoleReader
and invokes the specified main method.
- ConsoleRunner() - Constructor for class jline.ConsoleRunner
-
- CR - Static variable in interface jline.ConsoleOperations
-
- CR - Static variable in class jline.ConsoleReader
-
- CTRL_A - Static variable in interface jline.ConsoleOperations
-
- CTRL_B - Static variable in interface jline.ConsoleOperations
-
- CTRL_C - Static variable in interface jline.ConsoleOperations
-
- CTRL_D - Static variable in interface jline.ConsoleOperations
-
- CTRL_E - Static variable in interface jline.ConsoleOperations
-
- CTRL_F - Static variable in interface jline.ConsoleOperations
-
- CTRL_G - Static variable in interface jline.ConsoleOperations
-
- CTRL_K - Static variable in interface jline.ConsoleOperations
-
- CTRL_L - Static variable in interface jline.ConsoleOperations
-
- CTRL_N - Static variable in interface jline.ConsoleOperations
-
- CTRL_OB - Static variable in interface jline.ConsoleOperations
-
- CTRL_P - Static variable in interface jline.ConsoleOperations
-
- CTRL_QM - Static variable in interface jline.ConsoleOperations
-
- current() - Method in class jline.CursorBuffer
-
- current() - Method in class jline.History
-
Return the content of the current buffer.
- cursor - Variable in class jline.CursorBuffer
-
- CursorBuffer - Class in jline
-
A CursorBuffer is a holder for a
StringBuffer
that also contains the
current cursor position.
- CursorBuffer() - Constructor for class jline.CursorBuffer
-
- cyan(String) - Method in class jline.ANSIBuffer
-
- getAnsiBuffer() - Method in class jline.ANSIBuffer
-
- getAnsiEnabled() - Method in class jline.ANSIBuffer
-
- getArgumentPosition() - Method in class jline.ArgumentCompletor.ArgumentList
-
- getArguments() - Method in class jline.ArgumentCompletor.ArgumentList
-
- getAutoprintThreshhold() - Method in class jline.ConsoleReader
-
- getBellEnabled() - Method in class jline.ConsoleReader
-
- getBuffer() - Method in class jline.CursorBuffer
-
- getBufferPosition() - Method in class jline.ArgumentCompletor.ArgumentList
-
- getCandidates() - Method in class jline.SimpleCompletor
-
- getClassNames() - Static method in class jline.ClassNameCompletor
-
- getCompletionHandler() - Method in class jline.ConsoleReader
-
- getCompletors() - Method in class jline.ConsoleReader
-
Returns an unmodifiable list of all the completors.
- getCompletors() - Method in class jline.MultiCompletor
-
- getCurrentIndex() - Method in class jline.History
-
Returns the current history index.
- getCursorArgument() - Method in class jline.ArgumentCompletor.ArgumentList
-
- getCursorArgumentIndex() - Method in class jline.ArgumentCompletor.ArgumentList
-
- getCursorBuffer() - Method in class jline.ConsoleReader
-
- getDefaultBindings() - Method in class jline.Terminal
-
- getDefaultBindings() - Method in class jline.WindowsTerminal
-
- getDefaultPrompt() - Method in class jline.ConsoleReader
-
The default prompt that will be issued.
- getDelimiter() - Method in class jline.SimpleCompletor
-
- getDirectConsole() - Method in class jline.WindowsTerminal
-
Whether or not to allow the use of the JNI console interaction.
- getEcho() - Method in class jline.Terminal
-
Returns true if the terminal will echo all characters type.
- getEcho() - Method in class jline.UnixTerminal
-
- getEcho() - Method in class jline.UnsupportedTerminal
-
- getEcho() - Method in class jline.WindowsTerminal
-
- getEchoCharacter() - Method in class jline.ConsoleReader
-
Returns the echo character.
- getEscapeChars() - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
- getHistory() - Method in class jline.ConsoleReader
-
- getHistory(int) - Method in class jline.History
-
Get the history string for the given index.
- getHistoryList() - Method in class jline.History
-
Returns an immutable list of the history buffer.
- getInput() - Method in class jline.ConsoleReader
-
Returns the stream used for console input.
- getMaxSize() - Method in class jline.History
-
Get the maximum size that the history buffer will store.
- getOutput() - Method in class jline.History
-
Returns the PrintWriter that is used to store history elements.
- getPlainBuffer() - Method in class jline.ANSIBuffer
-
- getQuoteChars() - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
- getReader() - Static method in class jline.ConsoleRunner
-
- getStrict() - Method in class jline.ArgumentCompletor
-
Returns whether a completion at argument index N will succees
if all the completions from arguments 0-(N-1) also succeed.
- getSttyCommand() - Static method in class jline.UnixTerminal
-
The command to use to set the terminal options.
- getTermheight() - Method in class jline.ConsoleReader
-
Query the terminal to find the current width;
- getTerminal() - Method in class jline.ConsoleReader
-
- getTerminal() - Static method in class jline.Terminal
-
- getTerminalHeight() - Method in class jline.Terminal
-
Returns the current height of the terminal (in lines)
- getTerminalHeight() - Method in class jline.UnixTerminal
-
Returns the value of "stty size" height param.
- getTerminalHeight() - Method in class jline.UnsupportedTerminal
-
Always returng 24, since we can't access this info on Windows.
- getTerminalHeight() - Method in class jline.WindowsTerminal
-
Unsupported; return the default.
- getTerminalWidth() - Method in class jline.Terminal
-
Returns the current width of the terminal (in characters)
- getTerminalWidth() - Method in class jline.UnixTerminal
-
Returns the value of "stty size" width param.
- getTerminalWidth() - Method in class jline.UnsupportedTerminal
-
Always returng 80, since we can't access this info on Windows.
- getTerminalWidth() - Method in class jline.WindowsTerminal
-
Unsupported; return the default.
- getTermwidth() - Method in class jline.ConsoleReader
-
Query the terminal to find the current width;
- getUseHistory() - Method in class jline.ConsoleReader
-
Whether or not to add new commands to the history buffer.
- getUsePagination() - Method in class jline.ConsoleReader
-
Whether to use pagination when the number of rows of candidates exceeds
the height of the temrinal.
- gotoxy(int, int) - Static method in class jline.ANSIBuffer.ANSICodes
-
- green(String) - Method in class jline.ANSIBuffer
-
- initializeTerminal() - Method in class jline.Terminal
-
Initialize any system settings
that are required for the console to be able to handle
input correctly, such as setting tabtop, buffered input, and
character echo.
- initializeTerminal() - Method in class jline.UnixTerminal
-
Remove line-buffered input by invoking "stty -icanon min 1"
against the current terminal.
- initializeTerminal() - Method in class jline.UnsupportedTerminal
-
- initializeTerminal() - Method in class jline.WindowsTerminal
-
- INSERT - Static variable in interface jline.ConsoleOperations
-
Operation that toggles insert/overtype
- INSERT_KEY - Static variable in class jline.WindowsTerminal
-
When following the SPECIAL_KEY_INDICATOR or NUMPAD_KEY_INDICATOR
this character indicates that
the insert key was pressed.
- isANSISupported() - Method in class jline.Terminal
-
Returns true if the current console supports ANSI
codes.
- isANSISupported() - Method in class jline.WindowsTerminal
-
Windows doesn't support ANSI codes by default; disable them.
- isDelimiter(String, int) - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
Returns true if the specified character is a whitespace
parameter.
- isDelimiter(String, int) - Method in interface jline.ArgumentCompletor.ArgumentDelimiter
-
Returns true if the specified character is a whitespace
parameter.
- isDelimiterChar(String, int) - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
Returns true if the character at the specified position
if a delimiter.
- isDelimiterChar(String, int) - Method in class jline.ArgumentCompletor.WhitespaceArgumentDelimiter
-
The character is a delimiter if it is whitespace, and the
preceeding character is not an escape character.
- isEchoEnabled() - Method in class jline.Terminal
-
Returns false if character echoing is disabled.
- isEchoEnabled() - Method in class jline.UnixTerminal
-
- isEchoEnabled() - Method in class jline.UnsupportedTerminal
-
- isEchoEnabled() - Method in class jline.WindowsTerminal
-
- isEscaped(String, int) - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
- isOvertyping() - Method in class jline.CursorBuffer
-
- isQuoted(String, int) - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
- isSupported() - Method in class jline.Terminal
-
Returns true if this terminal is capable of initializing the
terminal to use jline.
- isSupported() - Method in class jline.UnixTerminal
-
- isSupported() - Method in class jline.UnsupportedTerminal
-
- isSupported() - Method in class jline.WindowsTerminal
-
- readCharacter(char[]) - Method in class jline.ConsoleReader
-
- readCharacter(InputStream) - Method in class jline.Terminal
-
Read a single character from the input stream.
- readCharacter(InputStream) - Method in class jline.WindowsTerminal
-
- readLine() - Method in class jline.ConsoleReader
-
Read the next line and return the contents of the buffer.
- readLine(Character) - Method in class jline.ConsoleReader
-
Read the next line with the specified character mask.
- readLine(String) - Method in class jline.ConsoleReader
-
- readLine(String, Character) - Method in class jline.ConsoleReader
-
Read a line from the
in InputStream
, and return the line
(without any trailing newlines).
- readVirtualKey() - Method in class jline.ConsoleReader
-
Read a character from the console.
- readVirtualKey(InputStream) - Method in class jline.Terminal
-
Reads a virtual key from the console.
- readVirtualKey(InputStream) - Method in class jline.UnixTerminal
-
- readVirtualKey(InputStream) - Method in class jline.WindowsTerminal
-
- red(String) - Method in class jline.ANSIBuffer
-
- REDISPLAY - Static variable in interface jline.ConsoleOperations
-
Operation that redisplays the current buffer.
- redrawLine() - Method in class jline.ConsoleReader
-
Clear the line and redraw it.
- removeCompletor(Completor) - Method in class jline.ConsoleReader
-
Remove the specified
Completor
from the list of handlers for
tab-completion.
- REPEAT_NEXT_CHAR - Static variable in interface jline.ConsoleOperations
-
Operation that repeats the character.
- REPEAT_PREV_CHAR - Static variable in interface jline.ConsoleOperations
-
Operation that moves to the previous character in the buffer.
- REPEAT_SEARCH_NEXT - Static variable in interface jline.ConsoleOperations
-
Operation that
- REPEAT_SEARCH_PREV - Static variable in interface jline.ConsoleOperations
-
Operation that
- replace(int, String) - Method in class jline.ConsoleReader
-
- REPLACE_CHAR - Static variable in interface jline.ConsoleOperations
-
Operation that
- REPLACE_MODE - Static variable in interface jline.ConsoleOperations
-
Operation that
- RESET_LINE - Static variable in interface jline.ConsoleOperations
-
- resetmode(int) - Static method in class jline.ANSIBuffer.ANSICodes
-
Same as setmode () except for mode = 7, which disables line
wrapping (useful for writing the right-most column without
scrolling to the next line).
- resetTerminal() - Static method in class jline.Terminal
-
Reset the current terminal to null.
- restore() - Static method in class jline.ANSIBuffer.ANSICodes
-
Restores the saved cursor position.
- restoreIn() - Static method in class jline.ConsoleReaderInputStream
-
- restoreLine() - Method in class jline.ConsoleReader
-
- restoreTerminal() - Method in class jline.UnixTerminal
-
Restore the original terminal configuration, which can be used when
shutting down the console reader.
- reverse(String) - Method in class jline.ANSIBuffer
-
- right(int) - Static method in class jline.ANSIBuffer.ANSICodes
-
Moves the cursor n positions to the right.
- RIGHT_ARROW_KEY - Static variable in class jline.WindowsTerminal
-
When following the SPECIAL_KEY_INDICATOR or NUMPAD_KEY_INDICATOR
this character indicates an
right arrow key press.
- save() - Static method in class jline.ANSIBuffer.ANSICodes
-
Saves the current cursor position.
- SEARCH_NEXT - Static variable in interface jline.ConsoleOperations
-
Operation that searches forward in the command history.
- SEARCH_PREV - Static variable in interface jline.ConsoleOperations
-
Operation that searches backwards in the command history.
- searchBackwards(String, int) - Method in class jline.History
-
Search backward in history from a given position.
- searchBackwards(String) - Method in class jline.History
-
Search backwards in history from the current position.
- setAlwaysIncludeNewline(boolean) - Method in class jline.CandidateListCompletionHandler
-
- setAnsiEnabled(boolean) - Method in class jline.ANSIBuffer
-
- setArgumentPosition(int) - Method in class jline.ArgumentCompletor.ArgumentList
-
- setArguments(String[]) - Method in class jline.ArgumentCompletor.ArgumentList
-
- setAutoprintThreshhold(int) - Method in class jline.ConsoleReader
-
- setBellEnabled(boolean) - Method in class jline.ConsoleReader
-
- setBuffer(ConsoleReader, String, int) - Static method in class jline.CandidateListCompletionHandler
-
- setBuffer(StringBuffer) - Method in class jline.CursorBuffer
-
- setBufferPosition(int) - Method in class jline.ArgumentCompletor.ArgumentList
-
- setCandidates(SortedSet) - Method in class jline.SimpleCompletor
-
- setCandidateStrings(String[]) - Method in class jline.SimpleCompletor
-
- setCompletionHandler(CompletionHandler) - Method in class jline.ConsoleReader
-
- setCompletors(Completor[]) - Method in class jline.MultiCompletor
-
- setCurrentIndex(int) - Method in class jline.History
-
Set current index to given number.
- setCursorArgumentIndex(int) - Method in class jline.ArgumentCompletor.ArgumentList
-
- setCursorPosition(int) - Method in class jline.ConsoleReader
-
Move the cursor position to the specified absolute index.
- setDebug(PrintWriter) - Method in class jline.ConsoleReader
-
Set the stream for debugging.
- setDefaultPrompt(String) - Method in class jline.ConsoleReader
-
The default prompt that will be issued.
- setDelimiter(String) - Method in class jline.SimpleCompletor
-
- setDirectConsole(Boolean) - Method in class jline.WindowsTerminal
-
Whether or not to allow the use of the JNI console interaction.
- setEchoCharacter(Character) - Method in class jline.ConsoleReader
-
Set the echo character.
- setEscapeChars(char[]) - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
- setHistory(History) - Method in class jline.ConsoleReader
-
- setHistoryFile(File) - Method in class jline.History
-
- setIn() - Static method in class jline.ConsoleReaderInputStream
-
- setIn(ConsoleReader) - Static method in class jline.ConsoleReaderInputStream
-
- setInput(InputStream) - Method in class jline.ConsoleReader
-
Set the stream to be used for console input.
- setkey(String, String) - Static method in class jline.ANSIBuffer.ANSICodes
-
Sets the key with the given code to the given value.
- setMaxSize(int) - Method in class jline.History
-
Set the maximum size that the history buffer will store.
- setmode(int) - Static method in class jline.ANSIBuffer.ANSICodes
-
Sets the screen mode.
- setOutput(PrintWriter) - Method in class jline.History
-
The output to which all history elements will be written (or null of
history is not saved to a buffer).
- setOvertyping(boolean) - Method in class jline.CursorBuffer
-
- setQuoteChars(char[]) - Method in class jline.ArgumentCompletor.AbstractArgumentDelimiter
-
- setStrict(boolean) - Method in class jline.ArgumentCompletor
-
If true, a completion at argument index N will only succeed
if all the completions from 0-(N-1) also succeed.
- setSttyCommand(String) - Static method in class jline.UnixTerminal
-
The command to use to set the terminal options.
- setupTerminal() - Static method in class jline.Terminal
-
Configure and return the
Terminal
instance for the
current platform.
- setUseHistory(boolean) - Method in class jline.ConsoleReader
-
Whether or not to add new commands to the history buffer.
- setUsePagination(boolean) - Method in class jline.ConsoleReader
-
Whether to use pagination when the number of rows of candidates exceeds
the height of the temrinal.
- SimpleCompletor - Class in jline
-
A simple
Completor
implementation that handles a pre-defined
list of completion words.
- SimpleCompletor(String) - Constructor for class jline.SimpleCompletor
-
Create a new SimpleCompletor with a single possible completion
values.
- SimpleCompletor(String[]) - Constructor for class jline.SimpleCompletor
-
Create a new SimpleCompletor with a list of possible completion
values.
- SimpleCompletor(String[], SimpleCompletor.SimpleCompletorFilter) - Constructor for class jline.SimpleCompletor
-
- SimpleCompletor(Reader) - Constructor for class jline.SimpleCompletor
-
Complete candidates using the contents of the specified Reader.
- SimpleCompletor(InputStream) - Constructor for class jline.SimpleCompletor
-
Complete candidates using the whitespearated values in
read from the specified Reader.
- SimpleCompletor.NoOpFilter - Class in jline
-
- SimpleCompletor.SimpleCompletorFilter - Interface in jline
-
Filter for elements in the completor.
- size() - Method in class jline.History
-
- sortFileNames(List) - Method in class jline.FileNameCompletor
-
- SPECIAL_KEY_INDICATOR - Static variable in class jline.WindowsTerminal
-
On windows terminals, this character indicates that a 'special' key has
been pressed.
- START_OF_HISTORY - Static variable in interface jline.ConsoleOperations
-
Operation that moves the current History to the beginning.
- stty(String) - Static method in class jline.UnixTerminal
-
Execute the stty command with the specified arguments
against the current active terminal.
- SUBSTITUTE_CHAR - Static variable in interface jline.ConsoleOperations
-
Operation that
- SUBSTITUTE_LINE - Static variable in interface jline.ConsoleOperations
-
Operation that