Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function viewBox(x,y,s,n)
- term.setCursorPos(x,y)
- term.setCursorPos(x,y)
- term.setBackgroundColor(colors.lightGray)
- print(n..(string.rep("-",string.len(s)-string.len(n))))
- term.setBackgroundColor(colors.black)
- print(s)
- print(s)
- print(s)
- term.setBackgroundColor(colors.lightGray)
- print(string.rep("-",string.len(s)))
- end
- viewBox(1,1," ","CMD")
- term.setCursorPos(1,2)
- print("[A]Term [S]hell")
- term.setCursorPos(1,3)
- IN = read()
- w = true
- while w do
- if IN == "A" or IN == "a" then
- w = false
- shell.run(".ATerm")
- else
- w = false
- while true do
- term.setBackgroundColor(colors.black)
- term.setCursorPos(1,2)
- print(" ")
- print(" ")
- term.setCursorPos(1,2)
- I = read()
- if I == "EXIT" then
- break
- else
- term.setCursorPos(1,3)
- shell.run(I)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement