25 lines
No EOL
597 B
Lua
25 lines
No EOL
597 B
Lua
|
|
|
|
local rss_feed = {}
|
|
rss_feed.new = function (monitor_wrap)
|
|
local self = {}
|
|
|
|
local monitor = monitor_wrap or peripheral.find("monitor")
|
|
|
|
local function move_line()
|
|
monitor.setCursorPos(1, select(2, monitor.getCursorPos()) + 1)
|
|
if select(2, monitor.getCursorPos()) >= select(2, monitor.getSize()) then
|
|
monitor.scroll(1)
|
|
monitor.setCursorPos(1, select(2, monitor.getCursorPos()) - 1)
|
|
end
|
|
end
|
|
|
|
function self.update()
|
|
--monitor.write("[TASS] Joeee biden!")
|
|
--move_line()
|
|
end
|
|
|
|
return self
|
|
end
|
|
|
|
return rss_feed |