Methods
(static) clear()
Clears the whole console
(static) eraseLine()
Erases a line
(static) goDown(lines)
move the cursor down a specific amount of lines
Parameters:
Name | Type | Description |
---|---|---|
lines |
number |
(static) goDownOne()
Move the cursor down one line
(static) goLeft(lines)
Move the cursor left a specific amount of columns
Parameters:
Name | Type | Description |
---|---|---|
lines |
number |
(static) goLeftOne()
Move the cursor left one column
(static) goRight(lines)
Move the cursor right a specific amount of columns
Parameters:
Name | Type | Description |
---|---|---|
lines |
number |
(static) goRightOne()
Move the cursor right one column
(static) goUp(lines)
move the cursor up an specific amount of lines
Parameters:
Name | Type | Description |
---|---|---|
lines |
number |
(static) goUpOne()
Move the cursor up one line
(static) move(x, y)
Move the cursor to a specific coordinate
Parameters:
Name | Type | Description |
---|---|---|
x |
number | |
y |
number |
(static) resetColor()
Reset all color effect on the cursor currently
(static) wrap(data, xLength)
Write text at the cursor until it hits xLength
sort of a limit on for how long it should write a string
Parameters:
Name | Type | Description |
---|---|---|
data |
string | |
xLength |
number |
(static) write(data)
Write text at the cursor
Parameters:
Name | Type | Description |
---|---|---|
data |
string |