[ncdirect-pydemo] accept inability to disable cursor

This commit is contained in:
nick black 2021-03-31 00:29:37 -04:00
parent 4c735cd95d
commit 23f3669af7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -24,7 +24,10 @@ def print_rgb(nc, total):
def demo(): def demo():
nc = notcurses.Ncdirect() nc = notcurses.Ncdirect()
nc.cursorDisable() try:
nc.cursorDisable()
except RuntimeError:
print("Couldn't disable cursor")
for t in range(768): for t in range(768):
print_rgb(nc, t); print_rgb(nc, t);
print() print()