Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Read 1 character - echo defines echo mode */
- char getch_(int echo)
- {
- char ch;
- initTermios(echo);
- ch = getchar();
- resetTermios();
- return ch;
- }
- /* Read 1 character without echo */
- char getch(void)
- {
- return getch_(0);
- }
Add Comment
Please, Sign In to add comment