i use function textcolor(c) where c is the color to change the colour of the writing in my program. But when it's excecuted it doesn't take effect right away. it's like it has to wait until the loop it's executed in or function has at least run once through. does anybody know any solutions to this problem. ti's really annoying. I'm trying to color code the names of elements in the periodic table so the user can tell which one is gas, metal, etc. thjanks