~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to rtl/inc/crth.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
    $Id: crth.inc,v 1.1 2004/02/08 16:23:10 michael Exp $
3
 
    This file is part of the Free Pascal run time library.
4
 
    Copyright (c) 1999-2000 by the Free Pascal development team.
5
 
 
6
 
    Borland Pascal 7 Compatible CRT Unit - Interface section
7
 
 
8
 
    See the file COPYING.FPC, included in this distribution,
9
 
    for details about the copyright.
10
 
 
11
 
    This program is distributed in the hope that it will be useful,
12
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 
 
15
 
 **********************************************************************}
16
 
 
17
 
Const
18
 
{ CRT modes }
19
 
  BW40          = 0;            { 40x25 B/W on Color Adapter }
20
 
  CO40          = 1;            { 40x25 Color on Color Adapter }
21
 
  BW80          = 2;            { 80x25 B/W on Color Adapter }
22
 
  CO80          = 3;            { 80x25 Color on Color Adapter }
23
 
  Mono          = 7;            { 80x25 on Monochrome Adapter }
24
 
  Font8x8       = 256;          { Add-in for ROM font }
25
 
 
26
 
{ Mode constants for 3.0 compatibility }
27
 
  C40           = CO40;
28
 
  C80           = CO80;
29
 
 
30
 
{ Foreground and background color constants }
31
 
  Black         = 0;
32
 
  Blue          = 1;
33
 
  Green         = 2;
34
 
  Cyan          = 3;
35
 
  Red           = 4;
36
 
  Magenta       = 5;
37
 
  Brown         = 6;
38
 
  LightGray     = 7;
39
 
 
40
 
{ Foreground color constants }
41
 
  DarkGray      = 8;
42
 
  LightBlue     = 9;
43
 
  LightGreen    = 10;
44
 
  LightCyan     = 11;
45
 
  LightRed      = 12;
46
 
  LightMagenta  = 13;
47
 
  Yellow        = 14;
48
 
  White         = 15;
49
 
 
50
 
{ Add-in for blinking }
51
 
  Blink         = 128;
52
 
 
53
 
var
54
 
 
55
 
{ Interface variables }
56
 
  CheckBreak: Boolean;    { Enable Ctrl-Break }
57
 
  CheckEOF: Boolean;      { Enable Ctrl-Z }
58
 
  DirectVideo: Boolean;   { Enable direct video addressing }
59
 
  CheckSnow: Boolean;     { Enable snow filtering }
60
 
  LastMode: Word;         { Current text mode }
61
 
  TextAttr: Byte;         { Current text attribute }
62
 
  WindMin: Word;          { Window upper left coordinates }
63
 
  WindMax: Word;          { Window lower right coordinates }
64
 
  { FPC Specific for large screen support }
65
 
  WindMinX : DWord;
66
 
  WindMaxX : DWord;
67
 
  WindMinY : DWord;
68
 
  WindMaxY : DWord      ;
69
 
 
70
 
{ Interface procedures }
71
 
procedure AssignCrt(var F: Text);
72
 
function KeyPressed: Boolean;
73
 
function ReadKey: Char;
74
 
procedure TextMode(Mode: Integer);
75
 
procedure Window(X1,Y1,X2,Y2: Byte);
76
 
procedure GotoXY(X,Y: Byte);
77
 
function WhereX: Byte;
78
 
function WhereY: Byte;
79
 
procedure ClrScr;
80
 
procedure ClrEol;
81
 
procedure InsLine;
82
 
procedure DelLine;
83
 
procedure TextColor(Color: Byte);
84
 
procedure TextBackground(Color: Byte);
85
 
procedure LowVideo;
86
 
procedure HighVideo;
87
 
procedure NormVideo;
88
 
procedure Delay(MS: Word);
89
 
procedure Sound(Hz: Word);
90
 
procedure NoSound;
91
 
 
92
 
{Extra Functions}
93
 
procedure cursoron;
94
 
procedure cursoroff;
95
 
procedure cursorbig;
96
 
 
97
 
{
98
 
  $Log: crth.inc,v $
99
 
  Revision 1.1  2004/02/08 16:23:10  michael
100
 
  + Moved CRT interface to common include file
101
 
 
102
 
}