Interface InputProcessor
public interface InputProcessor
InputProcessor is used by
Readline to process the input.
InputProcessor is using an instance of ConsoleBuffer to do
provide easy access to writing/reading from the stream, and access to history/undo/etc.
It is also used by many of the different action classes that react to specific user input.- Author:
- Ståle W. Pedersen
-
Method Summary
Modifier and TypeMethodDescriptionbuffer()org.aesh.terminal.ConnectioneditMode()voidflags()The value thats returned after a readlinevoidsetEditMode(EditMode mode) Update the current edit modevoidsetReturnValue(int[] value) Specify the return value
-
Method Details
-
returnValue
-
buffer
ConsoleBuffer buffer()- Returns:
- current console buffer
-
setReturnValue
void setReturnValue(int[] value) Specify the return value- Parameters:
value- return value
-
editMode
EditMode editMode()- Returns:
- the current edit mode
-
setEditMode
-
connection
org.aesh.terminal.Connection connection()- Returns:
- the Connection
-
finish
-
flags
EnumMap<ReadlineFlag, Integer> flags()- Returns:
- current flags
-