Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local term = require("term")
- local component = require("component")
- local gpu = component.gpu
- local lvl
- term.clear()
- print("введите уровень экрана")
- print("для эмуляции")
- print("1)50x16")
- print("2)80x25")
- print("3)160x50")
- lvl = io.read()
- if lvl == "1" then
- term.clear()
- gpu.setResolution(50, 16)
- elseif lvl == "2" then
- term.clear()
- gpu.setResolution(80, 25)
- elseif lvl == "3" then
- term.clear()
- gpu.setResolution(160, 50)
- else
- print("error")
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment