AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 350 forks source link

Support for running "Cygwin" (MinGW/MSYS) terminals on Windows #433

Closed afbjorklund closed 1 year ago

afbjorklund commented 2 years ago

Currently the posix code is compiled out, so it's not possible to run it from Windows.

But when isatty.IsCygwinTerminal, it should be preferred over the isatty.IsTerminal

This is the terminal:

https://mintty.github.io/


The library might need some refactoring, to have access to both of the implementations ?

The simple code can be copy/paste'd, but that would look ugly for e.g. cursor and such

afbjorklund commented 2 years ago

Apparently a duplicate of #148, which used winpty.exe as a workaround

It was needed for "lima", for running Linux machines (also on Windows)

AlecAivazis commented 1 year ago

Closing this as a duplicate