ex54.pp 355 B

123456789101112131415
  1. Program Example54;
  2. uses Linux;
  3. { Program to demonstrate the IOCtl function. }
  4. var
  5. tios : Termios;
  6. begin
  7. IOCtl(1,TCGETS,@tios);
  8. WriteLn('Input Flags : $',hexstr(tios.c_iflag,8));
  9. WriteLn('Output Flags : $',hexstr(tios.c_oflag,8));
  10. WriteLn('Line Flags : $',hexstr(tios.c_lflag,8));
  11. WriteLn('Control Flags: $',hexstr(tios.c_cflag,8));
  12. end.