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

Weird issue with term.setTextColor()

Started by aaronmallen, 14 November 2016 - 02:08 AM
aaronmallen #1
Posted 14 November 2016 - 03:08 AM
I have an issue were when I attempt to set term.setTextColor(colors.red) I get error window:88: Expected Number… As far as I am aware I am not mutating the colors table in anyway. Here is the code base at the line I think is causing the problem: https://github.com/aaronmallen/computercraft-efc/blob/master/src/bin/efc.lua#L199 any help with this issue would be greatly appreciated!
aaronmallen #2
Posted 14 November 2016 - 03:21 AM
I found the issue, I was indeed mutating colors here: https://github.com/aaronmallen/computercraft-efc/blob/master/src/lib/watcher.lua#L242 forgot to set a variable local (derp)