Advertisement
Guest User

test

a guest
Jan 31st, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.92 KB | None | 0 0
  1. peripheral.call("top","setTextScale",0.5)
  2. monitors = {"top"}
  3.  
  4. if not normalCursorBlink then
  5.  normalCursorBlink = term.setCursorBlink
  6. end
  7. term.setCursorBlink = function(input)
  8.  normalCursorBlink(input)
  9.  for i=1,#monitors do
  10.   peripheral.call(monitors[i],"setCursorBlink",input)
  11.  end
  12.  return
  13. end
  14.  
  15. if not normalBackgroundColor then
  16.  normalBackgroundColor = term.setBackgroundColour
  17. end
  18. term.setBackgroundColor = function(input)
  19.  normalBackgroundColor(input)
  20.  for i=1,#monitors do
  21.   peripheral.call(monitors[i],"setBackgroundColor",input)
  22.  end
  23.  return
  24. end
  25. term.setBackgroundColour = term.setBackgroundColor
  26.  
  27. if not normalWrite then
  28.  normalWrite = term.write
  29. end
  30.  
  31. term.write = function(input)
  32.  normalWrite(input)
  33.  for i=1,#monitors do
  34.   peripheral.call(monitors[i],"write",input)
  35.  end
  36.  return
  37. end
  38.  
  39. if not normalsetCursorPos then
  40.  normalsetCursorPos = term.setCursorPos
  41. end
  42. term.setCursorPos = function(input1, input2)
  43.  normalsetCursorPos(input1,input2)
  44.  for i=1,#monitors do
  45.   peripheral.call(monitors[i],"setCursorPos",input1,input2)
  46.  end
  47.  return
  48. end
  49.  
  50. if not normalClear then
  51.  normalClear = term.clear
  52. end
  53. term.clear = function(input)
  54.  normalClear()
  55.  for i=1,#monitors do
  56.   peripheral.call(monitors[i],"clear")
  57.  end
  58.  return
  59. end
  60.  
  61. if not normalsetTextColor then
  62.  normalsetTextColor = term.setTextColour
  63. end
  64.  
  65. term.setTextColour = function(input)
  66.  normalsetTextColor(input)
  67.  for i=1,#monitors do
  68.   peripheral.call(monitors[i],"setTextColor",input)
  69.  end
  70.  return
  71. end
  72. term.setTextColor = term.setTextColour
  73.  
  74. if not normalClearLine then
  75.  normalClearLine = term.clearLine
  76. end
  77. term.clearLine = function()
  78.  normalClearLine()
  79.  for i=1,#monitors do
  80.   peripheral.call(monitors[i],"clearLine")
  81.  end
  82.  return
  83. end
  84.  
  85. if not normalScroll then
  86.  normalScroll = term.scroll
  87. end
  88. term.scroll = function(input)
  89.  normalScroll(input)
  90.  for i=1,#monitors do
  91.   peripheral.call(monitors[i],"scroll",input)
  92.  end
  93. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement