Advertisement
Corbinhol

test

Sep 21st, 2022 (edited)
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. --test
  2. local gui = require("SmallGUI");
  3. gui.reset()
  4. local text = "";
  5. function updateScreen()
  6.     while true do
  7.         gui.printf("Text: " .. text, 1, 1);
  8.         sleep(0);
  9.     end
  10. end
  11.  
  12. function getInput()
  13.     while true do
  14.         term.setCursorPos(1, 10);
  15.         text = read();
  16.     end
  17. end
  18.  
  19. parallel.waitForAny(updateScreen, getInput)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement