New to python here and using curses import. I want to detect keyboard shortcuts like ALT+ F, etc. I am currently using getch()to get the key and then print it in a curses window. The value does not change for For ALT+ F. How to define keyboard shortcuts ALT?
import curses
def Main(screen):
foo = 0
while foo == 0:
ch = screen.getch()
screen.addstr (5, 5, str(ch), curses.A_REVERSE)
screen.refresh()
if ch == ord('q'):
foo = 1
curses.wrapper(Main)
wufoo source
share