public class AeshConsoleBuffer extends Object implements ConsoleBuffer
| Modifier and Type | Method and Description |
|---|---|
void |
addActionToUndoStack()
Add current text and cursor position to the undo stack
|
void |
capitalizeWord() |
void |
changeCase()
Switch case if the character is a letter
|
void |
changeOutputBuffer(PrintStream output) |
void |
clear(boolean includeBuffer)
Clear an ansi terminal.
|
void |
displayPrompt() |
void |
drawLine() |
void |
drawLine(boolean keepCursorPosition) |
PrintStream |
err() |
Buffer |
getBuffer() |
EditMode |
getEditMode() |
PasteManager |
getPasteManager() |
UndoManager |
getUndoManager() |
void |
insertBufferLine(String insert,
int position) |
boolean |
isPrompted() |
void |
lowerCaseWord() |
void |
moveCursor(int where) |
PrintStream |
out() |
boolean |
paste(int index,
boolean before)
Paste previous yanked word/char either before or on the cursor position
|
boolean |
performAction(EditAction action)
Perform the designated action created by an event
|
void |
replace(int rChar) |
void |
setBufferLine(String newLine) |
void |
setEditMode(EditMode editMode) |
void |
setPrompt(Prompt prompt) |
void |
setPrompted(boolean prompted) |
void |
syncCursor() |
void |
updateCurrentAction(Action action) |
void |
updatePrompt(Prompt prompt) |
void |
upperCaseWord() |
void |
writeChar(char c) |
void |
writeChars(int[] chars) |
void |
writeString(String input) |
public Buffer getBuffer()
getBuffer in interface ConsoleBufferpublic PrintStream out()
out in interface ConsoleBufferpublic PrintStream err()
err in interface ConsoleBufferpublic void changeOutputBuffer(PrintStream output)
changeOutputBuffer in interface ConsoleBufferpublic void setEditMode(EditMode editMode)
setEditMode in interface ConsoleBufferpublic UndoManager getUndoManager()
getUndoManager in interface ConsoleBufferpublic PasteManager getPasteManager()
getPasteManager in interface ConsoleBufferpublic EditMode getEditMode()
getEditMode in interface ConsoleBufferpublic void moveCursor(int where)
moveCursor in interface ConsoleBufferpublic void drawLine()
drawLine in interface ConsoleBufferpublic void drawLine(boolean keepCursorPosition)
drawLine in interface ConsoleBufferpublic void updateCurrentAction(Action action)
updateCurrentAction in interface ConsoleBufferpublic void syncCursor()
syncCursor in interface ConsoleBufferpublic void replace(int rChar)
replace in interface ConsoleBufferpublic void changeCase()
ConsoleBufferchangeCase in interface ConsoleBufferpublic void capitalizeWord()
capitalizeWord in interface ConsoleBufferpublic void lowerCaseWord()
lowerCaseWord in interface ConsoleBufferpublic void upperCaseWord()
upperCaseWord in interface ConsoleBufferpublic void writeChars(int[] chars)
writeChars in interface ConsoleBufferpublic void writeString(String input)
writeString in interface ConsoleBufferpublic void writeChar(char c)
writeChar in interface ConsoleBufferpublic void displayPrompt()
displayPrompt in interface ConsoleBufferpublic void setPrompt(Prompt prompt)
setPrompt in interface ConsoleBufferpublic void updatePrompt(Prompt prompt)
updatePrompt in interface ConsoleBufferpublic void setBufferLine(String newLine)
setBufferLine in interface ConsoleBufferpublic void insertBufferLine(String insert, int position)
insertBufferLine in interface ConsoleBufferpublic boolean performAction(EditAction action) throws IOException
ConsoleBufferperformAction in interface ConsoleBufferaction - console actionIOException - streampublic boolean paste(int index,
boolean before)
paste in interface ConsoleBufferindex - which yank indexbefore - cursorpublic void addActionToUndoStack()
addActionToUndoStack in interface ConsoleBufferpublic void clear(boolean includeBuffer)
clear in interface ConsoleBufferincludeBuffer - if true include the current buffer linepublic boolean isPrompted()
isPrompted in interface ConsoleBufferpublic void setPrompted(boolean prompted)
setPrompted in interface ConsoleBufferCopyright © 2018 JBoss by Red Hat. All rights reserved.