So, what I am guessing is that you must have a clearing command of some sort like ACLS. I tried the spcolor command in a program of mine and it stayed the same color the whole time. so I am guessing it must have a clear in there somewhere and if you don't know how to keep the same color after a clear try making the color code a variable. I think this explains it? tell me if so :)