~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to docs/videoex/ex7.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Program Example7;
2
 
 
3
 
{ Program to demonstrate the GetVideoMode function. }
4
 
 
5
 
Uses video,keyboard,vidutil;
6
 
 
7
 
Var
8
 
  M : TVideoMode;
9
 
  S : String;
10
 
 
11
 
begin
12
 
  InitVideo;
13
 
  InitKeyboard;
14
 
  GetVideoMode(M);
15
 
  if M.Color then
16
 
    TextOut(1,1,'Current mode has color')
17
 
  else
18
 
    TextOut(1,1,'Current mode does not have color');
19
 
  Str(M.Row,S);
20
 
  TextOut(1,2,'Number of rows    : '+S);
21
 
  Str(M.Col,S);
22
 
  TextOut(1,3,'Number of columns : '+S);
23
 
  Textout(1,4,'Press any key to exit.');
24
 
  UpdateScreen(False);
25
 
  GetKeyEvent;
26
 
  DoneKeyboard;
27
 
  DoneVideo;
28
 
end.