Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setTextColor(colors.orange)
- print('Halflife Terminal')
- while true do
- label = os.getComputerLabel()
- if shell.dir() == '' then
- dir = '/'
- else
- dir = shell.dir()
- end
- sleep()
- term.setTextColor(colors.lightGray)
- write('[')
- term.setTextColor(colors.blue)
- write(label)
- term.setTextColor(colors.lightGray)
- write(' @ ')
- term.setTextColor(colors.blue)
- write(dir)
- term.setTextColor(colors.lightGray)
- write(']')
- term.setTextColor(colors.yellow)
- write('$ ')
- input=read()
- shell.run(input)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement