Package org.jline.terminal
Class Size
java.lang.Object
org.jline.terminal.Size
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rows
private int rows -
cols
private int cols
-
-
Constructor Details
-
Size
public Size() -
Size
public Size(int columns, int rows)
-
-
Method Details
-
getColumns
public int getColumns() -
setColumns
public void setColumns(int columns) -
getRows
public int getRows() -
setRows
public void setRows(int rows) -
cursorPos
public int cursorPos(int row, int col) A cursor position combines a row number with a column position.Note each row has
col+1
different column positions, including the right margin.- Parameters:
row
- the new rowcol
- the new column- Returns:
- the cursor position
-
copy
-
equals
-
hashCode
public int hashCode() -
toString
-