Crt: what changed
Revision 3 to 4. Removed lines have a minus sign; added lines have a plus sign.
Title: Crt crt
| Old | New | | Line |
|---|
| 1 | | - | CRT is a unit providing subroutines for programming in text mode. It is similar to ncurses C library. It's intention is to be compatible with the Borland Pascal / Turbo Pascal 7 CRT unit. |
| 2 | | - | |
| 3 | | - | ## Procedures and Functions |
| 4 | | - | |
| 5 | | - | ### Keyboard: |
| 6 | | - | |
| 7 | | - | ``` pascal |
| 8 | | - | Function KeyPressed: Boolean; |
| 9 | | - | Function ReadKey: Char; |
| 10 | | - | ``` |
| 11 | | - | |
| 12 | | - | ### Display: |
| 13 | | - | |
| 14 | | - | ``` pascal |
| 15 | | - | Procedure TextMode (Mode: word); |
| 16 | | - | Procedure Window(X1,Y1,X2,Y2: Byte); |
| 17 | | - | Procedure Window32(X1,Y1,X2,Y2: DWord); |
| 18 | | - | Procedure ClrScr; |
| 19 | | - | Procedure ClrEol; |
| 20 | | - | Procedure InsLine; |
| 21 | | - | Procedure DelLine; |
| 22 | | - | Procedure TextColor(Color: Byte); |
| 23 | | - | Procedure TextBackground(Color: Byte); |
| 24 | | - | Procedure LowVideo; |
| 25 | | - | Procedure HighVideo; |
| 26 | | - | Procedure NormVideo; |
| 27 | | - | ``` |
| 28 | | - | |
| 29 | | - | ### Cursor Control: |
| 30 | | - | |
| 31 | | - | ``` pascal |
| 32 | | - | Procedure cursoron; |
| 33 | | - | Procedure cursoroff; |
| 34 | | - | Procedure cursorbig; |
| 35 | | - | Procedure GotoXY(X,Y: tcrtcoord); |
| 36 | | - | Procedure GotoXY32(X,Y: DWord); |
| 37 | | - | Function WhereX: tcrtcoord; |
| 38 | | - | Function WhereY: tcrtcoord; |
| 39 | | - | Function WhereX32: DWord; |
| 40 | | - | Function WhereY32: DWord; |
| 41 | | - | ``` |
| 42 | | - | |
| 43 | | - | ### Sound: |
| 44 | | - | |
| 45 | | - | ``` pascal |
| 46 | | - | Procedure Sound(Hz: Word); |
| 47 | | - | Procedure NoSound; |
| 48 | | - | ``` |
| 49 | | - | |
| 50 | | - | ### Delay: (Typically used with sound) |
| 51 | | - | |
| 52 | | - | ``` pascal |
| 53 | | - | Procedure Delay(MS: Word); |
| 54 | | - | ``` |
| 55 | | - | |
| 56 | | - | ===<File:===> |
| 57 | | - | |
| 58 | | - | ``` pascal |
| 59 | | - | Procedure AssignCrt(var F: Text); |
| 60 | | - | ``` |
| 61 | | - | |
| 62 | | - | ## Variables and Constants |
| 63 | | - | |
| 64 | | - | ### Color Constants: |
| 65 | | - | |
| 66 | | - | ``` pascal |
| 67 | | - | const |
| 68 | | - | Black = 0; |
| 69 | | - | Blue = 1; |
| 70 | | - | Green = 2; |
| 71 | | - | Cyan = 3; |
| 72 | | - | Red = 4; |
| 73 | | - | Magenta = 5; |
| 74 | | - | Brown = 6; |
| 75 | | - | LightGray = 7; |
| 76 | | - | DarkGray = 8; |
| 77 | | - | LightBlue = 9; |
| 78 | | - | LightGreen = 10; |
| 79 | | - | LightCyan = 11; |
| 80 | | - | LightRed = 12; |
| 81 | | - | LightMagenta = 13; |
| 82 | | - | Yellow = 14; |
| 83 | | - | White = 15; |
| 84 | | - | Blink = 128; |
| 85 | | - | ``` |
| 86 | | - | |
| 87 | | - | --- |
| 88 | | - | *From the Free Pascal wiki, page "Crt", as it stood on 2019-12-27 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
| 89 | | - | Category: Units |
| 1 | + | #REDIRECT [[Crt]] |
Back to history