~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to docs/linuxex/ex54.pp

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2001-08-29 23:15:17 UTC
  • Revision ID: james.westby@ubuntu.com-20010829231517-thxsp7ctuab584ia
Tags: upstream-1.0.4
ImportĀ upstreamĀ versionĀ 1.0.4

Show diffs side-by-side

added added

removed removed

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