pfalcon / picotui

Lightweight, pure-Python Text User Interface (TUI) widget toolkit with minimal dependencies. Dedicated to the Pycopy project.
https://github.com/pfalcon/pycopy
MIT License
811 stars 70 forks source link

termios.error: (19, 'Operation not supported by device') #71

Open Emasoft opened 1 year ago

Emasoft commented 1 year ago

It gives me the following error:

[~cloud/Picotui]$ python example_widgets.py
Traceback (most recent call last):
  File "/private/var/mobile/Library/Mobile Documents/iCloud~AsheKube~app~a-Shell/Documents/Picotui/example_widgets.py", line 7, in <module>
    with Context():
  File "/var/mobile/Containers/Data/Application/D0804BBC-49FD-4101-8C2D-E0B2EBD81738/Library/lib/python3.11/site-packages/picotui/context.py", line 11, in __enter__
    Screen.init_tty()
  File "/var/mobile/Containers/Data/Application/D0804BBC-49FD-4101-8C2D-E0B2EBD81738/Library/lib/python3.11/site-packages/picotui/screen.py", line 122, in init_tty
    cls.org_termios = termios.tcgetattr(0)
                      ^^^^^^^^^^^^^^^^^^^^
termios.error: (19, 'Operation not supported by device')
[~cloud/Picotui]$ 

Other TUI libs, like Rich, work fine.