title: How to detect curses ALT + key combinations in python
body: <p>New to python here and using the curses import. I want to detect key combinations like <kbd>ALT</kbd>+<kbd>F</kbd> and similar. Currently, I am using <code>getch()</code> to receive a key and then printing it in a curses window. The value does not change for <kbd>F</kbd> or <kbd>ALT</kbd>+<kbd>F</kbd>. How can I detect the <kbd>ALT</kbd> key combinations?</p>
  
  <pre><code>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)
  </code></pre>