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

« back to all changes in this revision

Viewing changes to docs/videoex/ex4.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 Example4;
2
 
 
3
 
{ Program to demonstrate the GetCapabilities function. }
4
 
 
5
 
Uses video;
6
 
 
7
 
Var
8
 
  W: Word;
9
 
 
10
 
  Procedure TestCap(Cap: Word; Msg : String);
11
 
 
12
 
  begin
13
 
    Write(Msg,' : ');
14
 
    If (W and Cap=Cap) then
15
 
      Writeln('Yes')
16
 
    else
17
 
      Writeln('No');
18
 
  end;
19
 
 
20
 
begin
21
 
  W:=GetCapabilities;
22
 
  Writeln('Video driver supports following functionality');
23
 
  TestCap(cpUnderLine,'Underlined characters');
24
 
  TestCap(cpBlink,'Blinking characters');
25
 
  TestCap(cpColor,'Color characters');
26
 
  TestCap(cpChangeFont,'Changing font');
27
 
  TestCap(cpChangeMode,'Changing video mode');
28
 
  TestCap(cpChangeCursor,'Changing cursor shape');
29
 
end.