term.scroll

From ComputerCraft
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

term.scroll
Function
Syntax
term.scroll()
Returns nil
API term
Source CC:Tweaked (source)

Moves everything on the screen up distance pixels.

ExampleExampleMoves "Hello World!" up 3 pixels, and then prints "This text was printed 3 pixels below 'Hello World!"
Code
term.clear()
term.setCursorPos(1,4)
print("Hello World!")
term.scroll(3)
print("This text was printed 3 pixels below 'Hello World!'")
Output
Hello World!



This text was printed 3 pixels below 'Hello World!'