Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --test
- local gui = require("SmallGUI");
- gui.reset()
- local text = "";
- function updateScreen()
- while true do
- gui.printf("Text: " .. text, 1, 1);
- sleep(0);
- end
- end
- function getInput()
- while true do
- term.setCursorPos(1, 10);
- text = read();
- end
- end
- parallel.waitForAny(updateScreen, getInput)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement