Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:docs:tpro [2025/02/08 13:24] – prokushev | en:docs:tpro [2025/02/08 13:36] (current) – prokushev | ||
|---|---|---|---|
| Line 430: | Line 430: | ||
| Activate or deactivate colors on a Hercules InColor card | Activate or deactivate colors on a Hercules InColor card | ||
| - | function | + | ===== HercGraphicsMode |
| - | {-Return True if a Hercules card is in graphics mode} | + | |
| - | function | + | <code pascal>function |
| - | {-Return True if HercGraphicsMode will work} | + | |
| - | procedure SetHercMode(GraphMode : Boolean; GraphPage : Byte); | + | Return True if a Hercules card is in graphics mode |
| - | {-Set Hercules card to graphics mode or text mode, and activate specified | + | |
| - | | + | |
| - | function ReadKeyWord : Word; | + | ===== HercModeTestWorks ===== |
| - | {-Waits for keypress, then returns scan and character codes together} | + | |
| - | function | + | <code pascal>function |
| - | {-Returns True (and the key codes) if a keystroke is waiting} | + | |
| - | function KbdFlags : Byte; | + | Return True if HercGraphicsMode will work |
| - | {-Returns keyboard status flags as a bit-coded byte} | + | |
| - | procedure StuffKey(W : Word); | + | ===== SetHercMode ===== |
| - | {-Stuff one key into the keyboard buffer} | + | |
| - | procedure | + | <code pascal>procedure |
| - | {-Stuff the contents of S into the keyboard buffer} | + | |
| - | procedure ReInitCrt; | + | Set Hercules card to graphics mode or text mode, and activate specified graphics page (if switching to graphics mode). |
| - | {-Reinitialize CRT unit's internal variables. For TSR' | + | |
| - | DOS shells. May reset: CurrentMode, | + | |
| - | | + | |
| - | {$ifdef WIN32} | + | ===== ReadKeyWord ===== |
| - | procedure SetSafeCPSwitching(F: | + | |
| - | procedure SetUseACP(F: | + | |
| - | {$ENDIF} | + | |
| + | <code pascal> | ||
| - | procedure AssignConToCrt; | + | Waits for keypress, then returns scan and character codes together |
| - | procedure ClrScr; | + | ===== CheckKbd ===== |
| - | {-Clears the screen and returns the cursor to the upper-left corner} | + | |
| - | procedure TextBackground(Color: Byte); | + | <code pascal> |
| - | {-Selects the background color} | + | |
| - | procedure TextColor(Color: Byte); | + | Returns True (and the key codes) if a keystroke is waiting |
| - | {-Selects | + | |
| - | procedure Window(X1, | + | ===== KbdFlags ===== |
| - | {-Defines a text window on the screen} | + | |
| - | procedure GotoXY(X,Y: Byte); | + | <code pascal> |
| - | {-Moves the cursor to the given coordinates within the screen} | + | |
| - | function WhereX: Byte; | + | Returns |
| - | {-Returns | + | |
| - | function WhereY: Byte; | + | ===== StuffKey ===== |
| - | {-Returns the Y coordinate of the current cursor location} | + | |
| - | procedure | + | <code pascal>procedure |
| - | {-Clears all characters from the cursor position to the end of the line } | + | |
| - | { without moving the cursor. | + | |
| - | function KeyPressed: Boolean; | + | Stuff one key into the keyboard |
| - | {-Determines if a key has been pressed on the keyboard | + | |
| - | { if a key has been pressed | + | |
| - | function ReadKey: Char; | + | ===== StuffString ===== |
| - | {-Reads a character from the keyboard and returns a character or an } | + | |
| - | { extended scan code. } | + | |
| - | procedure | + | <code pascal>procedure |
| - | procedure InsLine; | + | |
| - | {-Inserts an empty line at the cursor position} | + | |
| - | procedure DelLine; | + | Stuff the contents of S into the keyboard buffer |
| - | {-Deletes | + | |
| - | procedure LowVideo; | + | ===== ReInitCrt ===== |
| - | {-Selects low intensity characters} | + | |
| - | procedure | + | <code pascal>procedure |
| - | {-Selects high-intensity characters} | + | |
| - | procedure NormVideo; | + | Reinitialize CRT unit's internal variables. For TSR's or programs with DOS shells. May reset: CurrentMode, |
| - | {-Selects normal intensity characters} | + | |
| - | procedure Delay(MS: Word); | + | ===== SetSafeCPSwitching ===== |
| - | procedure Sound(Hz: Word); | + | |
| - | procedure NoSound; | + | |
| - | procedure AssignCrt(var F: Text); | + | |
| - | {-Associates a text file with CRT device.} | + | |
| - | procedure PlaySound(Freq, | + | <code psacal> |
| - | {-Setups window coordinates | + | |
| + | ===== SetUseACP ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | |||
| + | ===== AssignConToCrt ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | ===== ClrScr ===== | ||
| + | |||
| + | <code psacal> | ||
| + | |||
| + | Clears the screen and returns the cursor to the upper-left corner | ||
| + | |||
| + | ===== TextBackground ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Selects the background color | ||
| + | |||
| + | ===== TextColor ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Selects the foreground character color | ||
| + | |||
| + | ===== Window ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Defines a text window on the screen | ||
| + | |||
| + | ===== GotoXY ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Moves the cursor to the given coordinates within the screen | ||
| + | |||
| + | ===== WhereX ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Returns the X coordinate of the current cursor location | ||
| + | |||
| + | ===== WhereY ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Returns the Y coordinate of the current cursor location | ||
| + | |||
| + | ===== ClrEol ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Clears all characters from the cursor position to the end of the line without moving the cursor. | ||
| + | |||
| + | ===== KeyPressed ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Determines if a key has been pressed on the keyboard and returns True if a key has been pressed | ||
| + | |||
| + | ===== ReadKey ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Reads a character from the keyboard and returns a character or an extended scan code. | ||
| + | |||
| + | ===== TextMode ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | ===== InsLine ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Inserts an empty line at the cursor position | ||
| + | |||
| + | ===== DelLine ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Deletes the line containing the cursor | ||
| + | |||
| + | ===== LowVideo ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Selects low intensity characters | ||
| + | |||
| + | ===== HighVideo ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Selects high-intensity characters | ||
| + | |||
| + | ===== NormVideo ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Selects normal intensity characters | ||
| + | |||
| + | ===== Delay ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | ===== Sound ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | ===== NoSound ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | ===== AssignCrt ===== | ||
| + | |||
| + | <code pascal> | ||
| + | |||
| + | Associates a text file with CRT device. | ||
| + | |||
| + | ===== PlaySound ===== | ||
| + | |||
| + | <code pascal>procedure PlaySound(Freq, | ||
| + | |||
| + | Setups window coordinates | ||
| + | |||
| + | ===== GetLastMode ===== | ||
| + | |||
| + | <code pascal> | ||
| - | procedure GetLastMode; | ||




