A safe addstr wrapper

def addstr(self, h, w, text, attrs=0):
        """
        A safe addstr wrapper
        """
        self.update_window_size()
        if h > self.height or w > self.width:
            return
        try:
            # Python curses addstr doesn't deal with non-ascii characters
            #self.window.addstr(h, w, text.encode("ascii", "ignore"), attrs)
            self.window.addstr(h, w, text, attrs)
        except Exception as e:
            pass