mattn
mattn
As far as I can see, it's not depend on go-isatty. It's possible to reproduce without go-isatty.
As far as I can see, it's not depend on go-isatty. It's possible to reproduce without go-isatty.
Probably, to check environment variable `WT_SESSION` exists can detect Windows Terminal. But not perfect way.
Currently, I have no best idea to do it.
FYI, go-colorable already support ENABLE_VIRTUAL_TERMINAL_PROCESSING. https://github.com/mattn/go-colorable/blob/2e1b0c1546e0173c0907cf05c67b8ba29ed8b4d1/colorable_windows.go#L1026
Sorry, I still not understand what go-isatty can do. Adding new function like `IsWindowsTerminal() bool` ?
This is a code to check DRCS Sixel. UNIX terminal should send-back TerminalID for terminal report. At least, we can check support of VT100. https://github.com/mattn/longcat/blob/62bfdec3ef9bebd028124cfee9f9d5e8d7eab938/main.go#L227
Could you please test this? https://gist.github.com/mattn/00cf5b7e38f4cceaf7077f527479870c
What do you mean controlling? [go-tty](https://github.com/mattn/go-tty) ?
I confirmed the patch fixes this issue. Thank you.