[ncdirect-pydemo] accept inability to disable cursor

dankamongmen/thirdpass
nick black 3 years ago
parent 4c735cd95d
commit 23f3669af7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

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

Loading…
Cancel
Save