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
1 changed files with 4 additions and 1 deletions

View File

@ -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: