TheOddByte

[ComputerCraft][Theme] Hacking Theme

Aug 14th, 2013
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. --# Hacking theme by Hellkid98
  2.  
  3. term_write = term_write or term.write
  4. term.write = function(text)
  5.   if term.isColor() then term.setTextColor(colors.lime); term.setBackgroundColor(colors.black);
  6. end
  7.  term_write(text)
  8. end
  9.  
  10. term_setCursorBlink = term_setCursorBlink or term.setCursorBlink
  11. term.setCursorBlink = function(boolean)
  12.   if term.isColor() then term.setTextColor(colors.lime)
  13. end
  14.  
  15. if boolean then term_setCursorBlink(true)
  16.  
  17.  else
  18.  term_setCursorBlink(false)
  19.  end
  20. end
  21.  
  22. term_clear = term_clear or term.clear
  23. term.clear = function()
  24.  if term.isColor() then term.setBackgroundColor(colors.black) term_clear() end
  25. end
  26.  
  27. os_version = os_version or os.version
  28. os.version = function()
  29.  return "HackOS 9000.001"
  30. end
  31.  
  32. term.clear()
  33. term.setCursorPos(1,1)
  34. print(os.version())
Add Comment
Please, Sign In to add comment