Target Block¶
This peripheral is provided by the Target Block. It is used to get data from Create Display Sources.
The peripheral only has some implementations from the Window API to receive data. It can't be manipulated much.
Metadata¶
Peripheral | v1.1 |
Attach name | "create_target" |
Attach side | all |
Functions¶
setWidth(width)
¶
Sets the new width of the display. Cannot be larger than 164 chars.
Parameters
width
: number The new width of the display.
Throws
- Whenever the given number is not in the range
1
to164
.
clear()
¶
Clears the whole screen.
clearLine(y)
¶
Clears the line at the cursor position.
Parameters
y
: number They
position of the to be cleared line.
getLine(y)
¶
Returns the line at the wanted display position.
Parameters
y
: number They
position on the display.
Returns
string
The string from the giveny
position.
Throws
- Whenever the given number is not in the range
1
to<terminal height>
getSize()
¶
Returns the current display size.
Returns
number
The width of the Target Block.number
The height of the Target Block.