def findFrameFirstLine(self, frame):
        """ For the given frame, figure out the first non-blank line, return
            that # (aka, first used line of the frame) """
        # start at the first line, work up until we find a character.
        for lineNum in range(0, frame.sizeY):
            for colNum in range(0, frame.sizeX):
                try:
                    if not frame.content[lineNum][colNum] in [' ', '']:
                        return lineNum  # we found a non-empty character
                except Exception as E:
                    pdb.set_trace()
        return 1 # blank frame, only save the first line.
 For the given frame, figure out the first non-blank line, return
            that # (aka, first used line of the frame) 
durdraw/durdraw_ui_curses.py