if curses can't write a character to the screen, just skip it; fixes #1

This commit is contained in:
James Tauber 2011-08-07 01:34:10 -04:00
parent 44099ae4f2
commit ce179a470f

View File

@ -63,7 +63,10 @@ class Memory:
else: else:
attr = curses.A_DIM attr = curses.A_DIM
try:
self.win.addch(row, column, c, attr) self.win.addch(row, column, c, attr)
except curses.error:
pass
class CPU: class CPU: