5
{ Program to demonstrate the TCGetAttr/TCSetAttr/CFMakeRaw functions. }
7
procedure ShowTermios(var tios:Termios);
9
WriteLn('Input Flags : $',hexstr(tios.c_iflag,8)+#13);
10
WriteLn('Output Flags : $',hexstr(tios.c_oflag,8));
11
WriteLn('Line Flags : $',hexstr(tios.c_lflag,8));
12
WriteLn('Control Flags: $',hexstr(tios.c_cflag,8));
19
WriteLn('Old attributes:');
23
Writeln('Setting raw terminal mode');
25
TCSetAttr(1,TCSANOW,tios);
26
WriteLn('Current attributes:');
29
TCSetAttr(1,TCSANOW,oldios);