Textualize / toolong

A terminal application to view, tail, merge, and search log files (plus JSONL).

Home Page:https://www.textualize.io/

Repository from Github https://github.comTextualize/toolongRepository from Github https://github.comTextualize/toolong

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

dontascii opened this issue · 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!