This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
houseofkraft's profile picture

How to make left and right scrolling

Started by houseofkraft, 12 October 2016 - 02:02 PM
houseofkraft #1
Posted 12 October 2016 - 04:02 PM
Hi Guys!

I was wondering how to make left and right scrolling

Thanks!

- House
Sewbacca #2
Posted 12 October 2016 - 04:06 PM
You buffer the display into a table of lines and create a scrollHorizontal (or whatever name you want) function.
The function subs every line into the wanted length and fills the rest with the background color. Now you have to redraw the lines.
(I propose to edit just the window API)