in reply to TK Problem (me again)

The reason that you end up with a blank listbox is that your while loop reads in all the input from LOG, so that by the time &insert_lines tries to read from LOG, there's nothing left. It looks like the code to change the foreground color should be inside &insert_lines.