POSIX implementation of get char/key.

def _getch():
    ''' POSIX implementation of get char/key. '''
    import tty

    with TermStack() as fd:
        tty.setraw(fd)
        return sys.stdin.read(1)