Advertisement
Guest User

util.lua

a guest
Jan 22nd, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local term = require("term")
  2.  
  3. local gpu = term.gpu()
  4.  
  5. function printC(text, color, isPalette)
  6.   local oldColor, isPaletteIndex = gpu.getForeground()
  7.   gpu.setForeground(color, isPalette)
  8.   io.write(text)
  9.   gpu.setForeground(oldColor, isPaletteIndex)
  10. end
  11.  
  12. function stub()
  13.   assert(false,"STUB")
  14. end
  15.  
  16. solarized = {
  17.   bg = 0x002b36,
  18.   fg = 0x657b83,
  19.   yellow = 0xb58900,
  20.   orange = 0xcb4b16,
  21.   red    = 0xdc322f,
  22.   magenta = 0xd33682,
  23.   violet = 0x6c71c4,
  24.   blue = 0x268bd2,
  25.   cyan = 0x2aa198,
  26.   green = 0x859900
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement