Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.lightGray)
- print("CommandLine [Version "..version.."]")
- print("")
- term.setTextColor(colors.white)
- function eject()
- disk.eject("right")
- disk.eject("left")
- disk.eject("top")
- disk.eject("bottom")
- disk.eject("front")
- disk.eject("back")
- end
- while true do
- term.setTextColor(colors.lightGray)
- local id = os.getComputerLabel() or os.getComputerID()
- local idt = id .. "\\"
- local def = "Users\\" .. idt
- local dir = def .. shell.dir()
- eject()
- term.setTextColor(colors.lightGray)
- local dir = dir:gsub("/","\\")
- write("C:\\"..dir..">")
- term.setTextColor(colors.lightGray)
- local line = read( nil, tCommandHistory )
- shell.run(line)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement