Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local gpu = component.gpu
- local term = require("term")
- local event = require("event")
- -- Variables
- local input
- term.clear()
- term.setCursor(1,1)
- term.write("Welcome to HexEdit!")
- term.setCursor(1,2)
- term.write("New or Open")
- term.setCursor(1,3)
- input = term.read()
- if (input == "n") then
- newFile()
- elseif (input == "o") then
- openFile()
- end
- local function newFile()
- term.clear()
- term.write("New File")
- end
- local function openFile()
- term.clear()
- term.write("Open File")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement