term.scroll

Moves everything on the screen up distance pixels.

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



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

term.scroll
Function
Syntax
term.scroll(
  • distance : number
)

Returns nil
API term
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.