This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
RadiationAlert's profile picture

window:57: On one computer, not the other?

Started by RadiationAlert, 25 May 2015 - 06:02 PM
RadiationAlert #1
Posted 25 May 2015 - 08:02 PM
So there is a program that generates the window:57: error with the following program and I can't figure out why…

local Main = {};

Main.Draw = {

DrawCharacters = function (x, y, text, textColor, backgroundColor)
term.setBackgroundColor (backgroundColor);
term.setTextColor (textColor);
term.setCursorPos (x, y);
term.write (text);
end,

}

function init ()
Main.Draw.DrawCharacters (5, 10, "Hello, World!", colors.green, colors.grey);
end

—–

I've read about what causes the error, but on this computer it doesn't?

term.setBackgroundColor (colors.lightGrey);
term.setTextColor (colors.red);
term.write ("Test!");
HPWebcamAble #2
Posted 25 May 2015 - 10:53 PM
Its colors.gray, not colors.grey (With an a, not an e)
Lyqyd #3
Posted 25 May 2015 - 11:00 PM
Same thing with colors.lightGrey down below. You could also use colours.grey and colours.lightGrey.