comparison loadtools/ttypassthru.c @ 10:e2e80a09338e

fc-sertool actually works; output from loadagent is visible!
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 01 May 2013 03:41:42 +0000
parents aa1f6fe16fef
children dfd3110d84e3
comparison
equal deleted inserted replaced
9:fea204bc7674 10:e2e80a09338e
71 cfmakeraw(&my_termios); 71 cfmakeraw(&my_termios);
72 my_termios.c_cc[VMIN] = 1; 72 my_termios.c_cc[VMIN] = 1;
73 my_termios.c_cc[VTIME] = 0; 73 my_termios.c_cc[VTIME] = 0;
74 tcsetattr(0, TCSAFLUSH, &my_termios); 74 tcsetattr(0, TCSAFLUSH, &my_termios);
75 75
76 printf("Entering tty pass-thru; type ^\\ to exit\r\n"); 76 printf("Entering tty pass-thru; type ^\\ to exit\r\n\n");
77 loop(); 77 loop();
78 tcsetattr(0, TCSAFLUSH, &saved_termios); 78 tcsetattr(0, TCSAFLUSH, &saved_termios);
79 return 0; 79 return 0;
80 } 80 }