Skip to content

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

Description

@Emasoft

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions