Add getch, ungetch, associated global variables