-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows support? #6
Comments
Sorry, there is no expected version for Windows in the near future but I am open to contributions as long as they respect the KISS principle. |
Both the Windows Subsystem for Linux and Docker for Windows might provide a reasonable shortcut. If I can come up w/ some working instructions, I'll post them here for possible inclusion in the readme/wiki? Although, perhaps the real issue is Windows console PTY support (although, that's upcoming, too). |
Thank you, if it's possible I'll have a look. Note that smenu does not use ptys, ptys are only used by the test system that uses my other small tool: ptylie. |
I wrote a quick Dockerfile, which you can build locally
Or, you can use the image I published to hub.docker.com.
Since it appears that $ function smenu { docker run --rm -it --name smenu anthonymastrean/smenu; } You should be able to run the example in the README now... except I get this error (which I'm having trouble making sense of) $ echo $(grep Vm /proc/$$/status | smenu -n20 -W $':\t\n' -q -c -b -g -s /VmH)
the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' When I Google the error, I get articles like this one; but, I'm sure that I've installed Git for Windows correctly. Let's try this
😭 OK, so, it appears I have no idea how this whole STDIN/TTY thing works between Bash and Docker on Windows. |
Thank you for your work, Note that smenu can also read its words from a file (see the SYNOPSIS and DESCRIPTION parts in the manual). E.g. |
Uh-oh, now I'm thinking about doing something silly like... function smenu {
cat > /tmp/smenu
docker run --rm -it -v /tmp/smenu:/tmp/smenu --name smenu anthonymastrean/smenu "$@" -- /tmp/smenu
} |
At this point, I'd say it's probably better to actually compile w/ VC++ or something rather than chasing this Docker for Windows rabbit hole 🤷♂️ 🤗 |
Sadly enough I have to ask this. Is windows support planned? It could possibly be as simple as compiling to a
.exe
with visual studio's tools, however that is not my expertise. With MinTTY and all most unix builtins are supported already.The text was updated successfully, but these errors were encountered: