Package org.jline.builtins
Class Nano.Buffer
java.lang.Object
org.jline.builtins.Nano.Buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbackspace(int count) voidvoiddelete(int count) voidvoidintintgetFile()intintintgetLine()getLines()intintvoidgotoLine(int x, int y) protected int[]protected int[]voidbooleanisBreakable(char ch) booleanisDirty()voidlastLine()voidmatching()voidmoveDisplayDown(int lines) voidmoveDisplayUp(int lines) voidmoveDown(int lines) booleanmoveLeft(int chars) booleanmoveRight(int chars) booleanmoveRight(int chars, boolean fromBeginning) voidmoveTo(int x, int y) voidmoveToChar(int pos) voidmoveToChar(int pos, Nano.CursorMovement move) voidmoveUp(int lines) voidnextPage()voidnextWord()voidopen()voidopen(InputStream is) voidprevPage()voidprevWord()voidread(InputStream fis) voidscrollDown(int lines) voidscrollUp(int lines) voidsetDirty(boolean dirty) intwidth()
-
Constructor Details
-
Buffer
-
-
Method Details
-
setDirty
public void setDirty(boolean dirty) -
getFile
-
getLines
-
getFirstLineToDisplay
public int getFirstLineToDisplay() -
getFirstColumnToDisplay
public int getFirstColumnToDisplay() -
getOffsetInLineToDisplay
public int getOffsetInLineToDisplay() -
getLine
public int getLine() -
getCharset
-
getFormat
-
isDirty
public boolean isDirty() -
getSyntaxHighlighter
-
getOffsetInLine
public int getOffsetInLine() -
getColumn
public int getColumn() -
open
- Throws:
IOException
-
open
- Throws:
IOException
-
read
- Throws:
IOException
-
insert
-
isBreakable
public boolean isBreakable(char ch) -
moveToChar
public void moveToChar(int pos) -
moveToChar
-
delete
public void delete(int count) -
backspace
public boolean backspace(int count) -
moveLeft
public boolean moveLeft(int chars) -
moveRight
public boolean moveRight(int chars) -
width
public int width() -
moveRight
public boolean moveRight(int chars, boolean fromBeginning) -
moveDown
public void moveDown(int lines) -
moveUp
public void moveUp(int lines) -
moveDisplayDown
public void moveDisplayDown(int lines) -
moveDisplayUp
public void moveDisplayUp(int lines) -
moveTo
public void moveTo(int x, int y) -
gotoLine
public void gotoLine(int x, int y) -
getDisplayedCursor
public int getDisplayedCursor() -
prevWord
public void prevWord() -
nextWord
public void nextWord() -
beginningOfLine
public void beginningOfLine() -
endOfLine
public void endOfLine() -
prevPage
public void prevPage() -
nextPage
public void nextPage() -
scrollUp
public void scrollUp(int lines) -
scrollDown
public void scrollDown(int lines) -
firstLine
public void firstLine() -
lastLine
public void lastLine() -
highlightStart
protected int[] highlightStart() -
highlightEnd
protected int[] highlightEnd() -
matching
public void matching()
-