toolong
toolong copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: '/dev/tty'
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!