From ce179a470f3b765b4b958f541c743bdf58695707 Mon Sep 17 00:00:00 2001 From: James Tauber Date: Sun, 7 Aug 2011 01:34:10 -0400 Subject: [PATCH] if curses can't write a character to the screen, just skip it; fixes #1 --- applepy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applepy.py b/applepy.py index 44ac7aa..237abed 100644 --- a/applepy.py +++ b/applepy.py @@ -63,7 +63,10 @@ class Memory: else: attr = curses.A_DIM - self.win.addch(row, column, c, attr) + try: + self.win.addch(row, column, c, attr) + except curses.error: + pass class CPU: