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
- API Note:
- This interface is an internal implementation detail of the readline library and is not intended for use by external consumers. It may change without notice in future releases.
-
Method Summary
Modifier and TypeMethodDescriptionbuffer()Gets the current console buffer.org.aesh.terminal.ConnectionGets the connection.editMode()Gets the current edit mode.voidFinishes the input processing with the given output.flags()Gets the current readline flags.The value thats returned after a readlinevoidsetEditMode(EditMode mode) Update the current edit mode.voidsetReturnValue(int[] value) Specify the return value.default voidsetReturnValue(String value) Set the return value as a String.
-
Method Details
-
returnValue
-
buffer
-
setReturnValue
void setReturnValue(int[] value) Specify the return value.- Parameters:
value- return value
-
setReturnValue
Set the return value as a String.- Parameters:
value- the return value
-
editMode
-
setEditMode
-
connection
org.aesh.terminal.Connection connection()Gets the connection.- Returns:
- the Connection
-
finish
Finishes the input processing with the given output.- Parameters:
out- the output string
-
flags
-