Module: cursor

A small underlying module which manages cursor movement
Source:

Methods

(static) clear()

Clears the whole console
Source:

(static) eraseLine()

Erases a line
Source:

(static) goDown(lines)

move the cursor down a specific amount of lines
Parameters:
Name Type Description
lines number
Source:

(static) goDownOne()

Move the cursor down one line
Source:

(static) goLeft(lines)

Move the cursor left a specific amount of columns
Parameters:
Name Type Description
lines number
Source:

(static) goLeftOne()

Move the cursor left one column
Source:

(static) goRight(lines)

Move the cursor right a specific amount of columns
Parameters:
Name Type Description
lines number
Source:

(static) goRightOne()

Move the cursor right one column
Source:

(static) goUp(lines)

move the cursor up an specific amount of lines
Parameters:
Name Type Description
lines number
Source:

(static) goUpOne()

Move the cursor up one line
Source:

(static) move(x, y)

Move the cursor to a specific coordinate
Parameters:
Name Type Description
x number
y number
Source:

(static) resetColor()

Reset all color effect on the cursor currently
Source:

(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
Source:

(static) write(data)

Write text at the cursor
Parameters:
Name Type Description
data string
Source: