Advertisement
EliteAnax17

Untitled

Jan 16th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. --coded by eliteanax17
  2.  
  3. local comp = require('component')
  4. local gpu = comp.gpu
  5.  
  6. local refresh_rate = 1
  7.  
  8. w,h = gpu.getResolution()
  9. gpu.setResolution(w, h) -- probably pointless but whatever
  10.  
  11. function round(t)
  12. return math.floor(t*10)*0.1
  13. end
  14.  
  15. echo "Initiate sleep mode? (y/n)"
  16. choice = term.read()
  17.  
  18. if choice = "y"
  19. echo "Works!"
  20. else
  21. echo "No."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement