pmbarrett314 / curses-menu

A simple console menu system in python using the curses library
MIT License
471 stars 55 forks source link

Support for vscode integrated terminal #48

Closed Marko-L closed 2 years ago

Marko-L commented 2 years ago

It would be nice if this worked in vscode integrated terminal. I have tested on different integrated terminals for vscode on windows 10 be it cmd, powershell, bash and the like. Arrow keys do not respond. I am using python 39 which works fine for external terminals. Num keys respond but of course that only works if your menu list is below 10 elements. 10nth item on the menu and above I cannot select using num keys.

pmbarrett314 commented 2 years ago

Looks related to https://github.com/zephyrproject-rtos/windows-curses/issues/23. I'll add a workaround for the arrow keys.