fix displaying of printed gcode files to screen