code: def _getch():
      ''' POSIX implementation of get char/key. '''
      import tty
  
      with TermStack() as fd:
          tty.setraw(fd)
          return sys.stdin.read(1f _getch():
      ''' POSIX implementation of get char/key. '''
      import tty
  
      with TermStack() as fd:
          tty.setraw(fd)
          return sys.stdin.read(1)
docs: POSIX implementation of get char/key.