toolong icon indicating copy to clipboard operation
toolong copied to clipboard

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

Open dontascii opened this issue 1 year ago • 0 comments

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!

dontascii avatar May 11 '24 10:05 dontascii