mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
[ncdirect-pydemo] accept inability to disable cursor
This commit is contained in:
parent
4c735cd95d
commit
23f3669af7
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user