cterminal/terminallinux.h
int t_getch()
{
    struct termios oldattr, newattr;
    int ch;
    tcgetattr( STDIN_FILENO, &oldattr );
    newattr = oldattr;
    newattr.c_lflag &= ~(ICANON | ECHO ); 
    tcsetattr( STDIN_FILENO, TCSANOW, &newattr );
    ch = getchar();
    tcsetattr( STDIN_FILENO, TCSANOW, &oldattr );
    return ch;
}
/* reads from keypress, doesn't echo */
reads from keypress, doesn't echo
reads from keypress doesn ' t echo
int t_getch()
{
    struct termios oldattr, newattr;
    int ch;
    tcgetattr( STDIN_FILENO, &oldattr );
    newattr = oldattr;
    newattr.c_lflag &= ~(ICANON | ECHO ); 
    tcsetattr( STDIN_FILENO, TCSANOW, &newattr );
    ch = getchar();
    tcsetattr( STDIN_FILENO, TCSANOW, &oldattr );
    return ch;
}
int t_getch ( ) { struct termios oldattr , newattr ; int ch ; tcgetattr ( STDIN_FILENO , & oldattr ) ; newattr = oldattr ; newattr . c_lflag &= ~ ( ICANON | ECHO ) ; tcsetattr ( STDIN_FILENO , TCSANOW , & newattr ) ; ch = getchar ( ) ; tcsetattr ( STDIN_FILENO , TCSANOW , & oldattr ) ; return ch ; }
reads from keypress, doesn't echo
reads from keypress doesn ' t echo