IngoMeyer441 / simple-term-menu

A Python package which creates simple interactive menus on the command line.
MIT License
492 stars 43 forks source link

Add Windows support #34

Open wnhrt opened 3 years ago

wnhrt commented 3 years ago

Known issues:

IngoMeyer441 commented 3 years ago

Thanks for the great job to fix #5. :+1: I think I will first separate the existing code into a terminal dependent (→ backend) and independent part to avoid all the if/else blocks and perhaps I can find some solutions to the remaining limitations. Would be great to have arrow key support, since I don't think that everyone is used to vi motions. :blush:

wnhrt commented 3 years ago

No problem :) I hope this helps to adapt the code for Windows. Separating the code sounds like a very good idea. Looking forward to your implementations.

Regarding arrow support, this is the best I could came up with, without using external dependencies. But still no modifier keys. I tried to implement it with Windows legacy code from kernel32.dll and user32.dll, but had no success.

wnhrt commented 3 years ago

Heureka! Here are two possible solutions, which both use the Windows API:

LoaiDev commented 1 year ago

any updates on this?

IngoMeyer441 commented 1 year ago

Not yet. I started to work on integrating the changes, but switched to other tasks...