Attached is my take on what you are going for. On line 159 you should stop at len(TXT$) - 1. On line 162 it looks like you are reprinting everything up to the current character (special codes and all) on the current line. Instead you should keep track of both the x and y coordinate (x would increment for each character but reset to start on a newline). Then locate and print the current character o