Advertisement
Guest User

startup

a guest
May 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. term.setBackgroundColor(colors.gray)
  4. term.clear()
  5. term.setTextColor(colors.orange)
  6. print('Halflife Terminal')
  7. while true do
  8.     label = os.getComputerLabel()
  9.     if shell.dir() == '' then
  10.         dir = '/'
  11.     else
  12.         dir = shell.dir()
  13.     end
  14.     sleep()
  15.     term.setTextColor(colors.lightGray)
  16.     write('[')
  17.     term.setTextColor(colors.blue)
  18.     write(label)
  19.     term.setTextColor(colors.lightGray)
  20.     write(' @ ')
  21.     term.setTextColor(colors.blue)
  22.     write(dir)
  23.     term.setTextColor(colors.lightGray)
  24.     write(']')
  25.     term.setTextColor(colors.yellow)
  26.     write('$ ')
  27.     input=read()
  28.     shell.run(input)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement