Weirdest thing
Colors API : pastebin.com/y7i7vcX6
Desktop : pastebin.com/f39PmjAU
Edited by incinirate, 15 August 2014 - 06:11 PM.
Posted 15 August 2014 - 06:09 PM
Edited by incinirate, 15 August 2014 - 06:11 PM.
Posted 15 August 2014 - 07:32 PM
Posted 16 August 2014 - 11:36 PM
local current = term.current()
local redirect = {}
textColor = colors.white
redirect.setTextColor = function (c)
textColor = c
current.setTextColor(c)
end
setmetatable(redirect, {__index = current})
term.redirect(redirect)
Posted 16 August 2014 - 11:55 PM
MKlegoman357, on 16 August 2014 - 11:36 PM, said:
local current = term.current()
local redirect = {}
textColor = colors.white
redirect.setTextColor = function (c)
textColor = c
current.setTextColor(c)
end
setmetatable(redirect, {__index = current})
term.redirect(redirect)
Posted 17 August 2014 - 12:07 AM
function printError( ... )
if term.isColour() then
term.setTextColour( colours.red ) --Line 220
end
print( ... )
term.setTextColour( colours.white )
end
Posted 17 August 2014 - 10:47 AM
Edited by MKlegoman357, 17 August 2014 - 10:52 AM.
Posted 17 August 2014 - 08:51 PM
local terminal = {}
...
local oSB=terminal.setBackgroundColor
local oST=terminal.setTextColor
Posted 17 August 2014 - 08:56 PM
0 members, 3 guests, 0 anonymous users