Advertisement
LDDestroier

ErthLand new programs

Apr 26th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | None | 0 0
  1. newprogs = {
  2.     "extsh (extended shell)",
  3.     "nsh (rednet remote desktop)",
  4.     "idspoof (id spoofer)",
  5.     "ifconfig (modem channel checker)",
  6.     "lsh (list hidden)",
  7.     "monc (monitor mirror program)",
  8.     "nocolor (color stripper)",
  9.     "on (computer activator)",
  10.     "pschat (http chat rooms)",
  11.     "taco (text editor with flavor)",
  12.     "tron (multiplayer rednet game)",
  13.     "vncd (rednet vnc)"
  14. }
  15.  
  16. print("New programs:")
  17. for a = 1, #newprogs do
  18.     x, y = term.getCursorPos()
  19.     scr_x, scr_y = term.getSize()
  20.     if term.isColor() then
  21.         term.setTextColor(colors.white)
  22.         term.setBackgroundColor(colors.gray)
  23.     end
  24.     write("*")
  25.     if term.isColor() then
  26.         term.setTextColor(colors.orange)
  27.         term.setBackgroundColor(colors.black)
  28.     end
  29.     write(" " .. newprogs[a])
  30.     if y >= scr_y then
  31.         if term.isColor() then
  32.             term.setBackgroundColor(colors.black)
  33.             term.setTextColor(colors.lightGray)
  34.         end
  35.         write(" ... press a key")
  36.         os.pullEvent("key")
  37.     end
  38.     write("\n")
  39. end
  40. term.setTextColor(colors.white)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement