Package org.jline.builtins
Class Nano.Buffer
java.lang.Object
org.jline.builtins.Nano.Buffer
- Enclosing class:
Nano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
backspace
(int count) void
void
delete
(int count) void
void
int
int
getFile()
int
int
int
getLine()
getLines()
int
int
void
gotoLine
(int x, int y) protected int[]
protected int[]
void
boolean
isBreakable
(char ch) boolean
isDirty()
void
lastLine()
void
matching()
void
moveDisplayDown
(int lines) void
moveDisplayUp
(int lines) void
moveDown
(int lines) boolean
moveLeft
(int chars) boolean
moveRight
(int chars) boolean
moveRight
(int chars, boolean fromBeginning) void
moveTo
(int x, int y) void
moveToChar
(int pos) void
moveToChar
(int pos, Nano.CursorMovement move) void
moveUp
(int lines) void
nextPage()
void
nextWord()
void
open()
void
open
(InputStream is) void
prevPage()
void
prevWord()
void
read
(InputStream fis) void
scrollDown
(int lines) void
scrollUp
(int lines) void
setDirty
(boolean dirty) int
width()
-
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()
-