You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WSL Debian 11 bash within Microsoft Windows Terminal
What happened?
$ pip list | grep curses-menu
curses-menu 0.6.7
$ python -V
Python 3.9.2
$ uname -a
Linux Potoroo 5.15.68.1-microsoft-standard-WSL2 #1 SMP Mon Sep 19 19:14:52 UTC 2022 x86_64 GNU/Linux
$ head -1 /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
I'm trying to use curses-menu to add a menu to an existing curses based app, however after doing so I find my calls to window.getch() break.
In the attached example I get and echo out a key press, then call CursesMenu.get_selection, then attempt to get and echo a key press again. This second time though my keypresses are just echoed to the console rather than caught by the getch()
fwiw - I had similar with another curses based menu - the issue there was the module ran it's core loop via curses.wrapper() which trashed my existing stdscr when it tore down. modifying that one to take an optional existing stdscr fixed it
Version
Other (include below)
Operating System
Other (include below)
Environment
WSL Debian 11 bash within Microsoft Windows Terminal
What happened?
I'm trying to use curses-menu to add a menu to an existing curses based app, however after doing so I find my calls to window.getch() break.
In the attached example I get and echo out a key press, then call CursesMenu.get_selection, then attempt to get and echo a key press again. This second time though my keypresses are just echoed to the console rather than caught by the getch()
test_curses_menu.py.txt
curses-menu.issue.mp4
For completeness the issue was also reproducible on my Raspberry Pi, connected via Putty to remove Windows Terminal from the mix.
The text was updated successfully, but these errors were encountered: