def add_str ( window , line_num , str ) : try : window . addstr ( line_num , 0 , str ) except curses . error : pass
python curses add string without moving cursor
attempt to draw str on screen and ignore errors if they occur
def add_str(window, line_num, str):
    """ attempt to draw str on screen and ignore errors if they occur """
    try:
        window.addstr(line_num, 0, str)
    except curses.error:
        pass