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

need that place yellow too

Started by makerimages, 03 November 2012 - 01:52 AM
makerimages #1
Posted 03 November 2012 - 02:52 AM
hi, this code:


local width=4
local size={term.getSize()}
for w=1,width do
  term.setCursorPos(1,size[2]-w+1)
  for x=1,size[1]-1 do
    write(' ')
  end
end

gives me a yellow taskbar looking like this[attachment=645:2012-11-02_15.49.32.png]

i want that one column in the right to be yellow too, how can i do that?
Jasonfran #2
Posted 03 November 2012 - 03:15 AM
For a start size[2] doesn't exist
Lyqyd #3
Posted 03 November 2012 - 03:28 AM
Yes, size[2] certainly does exist. If you don't understand the code, don't try to help.

Try adjusting the loop. See what changing the size[1] - 1 to just size[1] does.
makerimages #4
Posted 09 November 2012 - 04:00 AM
that works, thanks