Jump to content




term.scroll()


  • You cannot reply to this topic
2 replies to this topic

#1 Left

  • Members
  • 88 posts

Posted 11 March 2013 - 06:55 PM

Im developing a new (unreleased) program and I need a little bit of help with term.scroll. There is next to nothing on the wiki http://www.computerc...tle=Term.scroll do you guys know anything about it?

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 11 March 2013 - 07:00 PM

The wiki about covers it, actually. term.scroll(1) would shift all of the lines of the terminal up one, discarding the top row. term.scroll(2) would do the same, but move everything up two lines. term.scroll(-1) pushes everything down a line and adds a blank line at the top, if I recall correctly.

#3 Doyle3694

  • Members
  • 815 posts

Posted 12 March 2013 - 03:10 AM

It should be noticed that it only goes upwards, the code
term.scroll(1)
term.scroll(-1)
will remove the uppermost line and leave everything else the exact same. Which means that every piece of data that goes past the top of the terminal is lost forever





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users