Logo Search packages:      
Sourcecode: cowdancer version File versions  Download package

termios.c

/*BINFMTC:

debugging code for termios.

 */
#include <stdio.h>
#include <termios.h>
#include <unistd.h>

int main(int ac, char**av)
{
  struct termios t;

  tcgetattr(0, &t);
  
  printf("%x\n%x\n%x\n%x\n", 
       t.c_iflag,
       t.c_oflag,
       t.c_cflag,
       t.c_lflag);

  printf ("%i\n", 
        t.c_lflag & ECHO );

  t.c_lflag |= ECHO;
  tcsetattr(0, TCSADRAIN, &t);
  
  return 0;
}

Generated by  Doxygen 1.6.0   Back to index