Skip to content

FileNotFoundError: [Errno 2] No such file or directory: '/dev/tty' #52

@dontascii

Description

@dontascii

I am unable to redirect output of commands to tl via a pipe in Windows 11 (powershell or cmd)

tree | tl
File "\site-packages\toolong\cli.py", line 55, in run
with open("/dev/tty", "rb", buffering=0) as tty_stdin:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/dev/tty'
...

I know windows support has been recently added. I didn't see any open/closed issues regarding this error.
FWIW - I am able to pipe commands to toolong using wsl in a linux distro just fine.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions