Difference between revisions of "Unit Console"
Line 1,509: | Line 1,509: | ||
! '''Note''' | ! '''Note''' | ||
| For Text Console functions, X and Y are based on character rows and columns not screen pixels | | For Text Console functions, X and Y are based on character rows and columns not screen pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | |||
+ | '''CRT console functions''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleAssignCrt(var F:Text);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function AssignCrt | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/assigncrt.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleClrEol;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function ClrEol | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/clreol.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleClrScr;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function ClrScr | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/clrscr.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleDelay(MS:Word);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function Delay | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/delay.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleDelLine;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function DelLine | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/delline.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleGotoXY(X,Y:Integer);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function GotoXY | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/gotoxy.html | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | For CRT Console functions, X and Y are based on character rows and columns not screen pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleHighVideo;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function HighVideo | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/highvideo.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleInsLine;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function InsLine | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | See: http://www.freepascal.org/docs-html-3.0.0/rtl/crt/insline.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">function ConsoleKeypressed:Boolean;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function KeyPressed | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/keypressed.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleLowVideo;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function LowVideo | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/lowvideo.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleNormVideo;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function NormVideo | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/normvideo.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleNoSound;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function NoSound | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/nosound.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">function ConsoleReadKey:Char;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function ReadKey | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/readkey.html | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | For extended key scan codes see: http://www.freepascal.org/docs-html/rtl/keyboard/kbdscancode.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleSound(Hz:Word);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function Sound | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/sound.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleTextBackground(Color:LongWord);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function TextBackground | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textbackground.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleTextColor(Color:LongWord);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function TextColor | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textcolor.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleTextMode(Mode:Integer);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function TextMode | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/textmode.html | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">function ConsoleWhereX:Integer;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function WhereX | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/wherex.html | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | For CRT Console functions, X is based on character columns not screen pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">function ConsoleWhereY:Integer;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function WhereY | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/wherey.html | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | For CRT Console functions, Y is based on character row not screen pixel | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleWindow(X1,Y1,X2,Y2:Integer);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Compatible with RTL Crt unit function Window | ||
+ | |- | ||
+ | ! '''See''' | ||
+ | | http://www.freepascal.org/docs-html-3.0.0/rtl/crt/window.html | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | For CRT Console functions, X1, Y1, X2 and Y2 are based on character rows and columns not screen pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleScrollUp(Row,Lines:Integer);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | To be documented | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | For CRT Console functions, Row and Lines are based on character rows and columns not screen pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleScrollDown(Row,Lines:Integer);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | To be documented | ||
+ | |- | ||
+ | ! '''Note''' | ||
+ | | For CRT Console functions, Row and Lines are based on character rows and columns not screen pixels | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleWrite(const AText:String);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | To be documented | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleWriteLn(const AText:String);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | To be documented | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleWriteChr(AChr:Char);;</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | To be documented | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleRead(var AText:String);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Read text from console input and echo to screen | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleReadLn(var AText:String);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Read text from console input and echo to screen | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code style="padding:10px;">procedure ConsoleReadChr(var AChr:Char);</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; margin:0px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background:white;" | ||
+ | |- | ||
+ | ! '''Description''' | ||
+ | | Read characters from console input and echo to screen | ||
|- | |- | ||
|} | |} |
Revision as of 06:15, 26 July 2016
Return to Unit Reference
Contents
[hide]Description
To be documented
Constants
To be documented
Type definitions
To be documented
Public variables
To be documented
Function declarations
Initialization functions
procedure ConsoleInit;
Console functions
function ConsoleDeviceOpen(Console:PConsoleDevice):LongWord;
function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;
function ConsoleDeviceClear(Console:PConsoleDevice;Color:LongWord):LongWord;
function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;
function ConsoleDeviceScroll(Console:PConsoleDevice;X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;
function ConsoleDeviceDrawBox(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
function ConsoleDeviceDrawLine(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;
function ConsoleDeviceDrawChar(Console:PConsoleDevice;Handle:TFontHandle;Ch:Char;X,Y,Forecolor,Backcolor:LongWord):LongWord;
function ConsoleDeviceDrawText(Console:PConsoleDevice;Handle:TFontHandle;const Text:String;X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;
function ConsoleDeviceDrawPixel(Console:PConsoleDevice;X,Y,Color:LongWord):LongWord;
function ConsoleDeviceDrawBlock(Console:PConsoleDevice;X1,Y1,X2,Y2,Color:LongWord):LongWord;
function ConsoleDeviceDrawImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;
function ConsoleDeviceDrawWindow(Console:PConsoleDevice;Handle:TWindowHandle):LongWord;
function ConsoleDeviceGetPixel(Console:PConsoleDevice;X,Y:LongWord;var Color:LongWord):LongWord;
function ConsoleDeviceGetImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;
function ConsoleDeviceCopyImage(Console:PConsoleDevice;const Source,Dest:TConsolePoint;Width,Height:LongWord):LongWord;
function ConsoleDeviceGetPosition(Console:PConsoleDevice;Position:LongWord;var X1,Y1,X2,Y2:LongWord):LongWord;
function ConsoleDeviceGetProperties(Console:PConsoleDevice;Properties:PConsoleProperties):LongWord;
function ConsoleDeviceCheckFlag(Console:PConsoleDevice;Flag:LongWord):Boolean;
function ConsoleDeviceGetMode(Console:PConsoleDevice):LongWord;
function ConsoleDeviceGetState(Console:PConsoleDevice):LongWord;
function ConsoleDeviceCreate:PConsoleDevice;
function ConsoleDeviceCreateEx(Size:LongWord):PConsoleDevice;
function ConsoleDeviceDestroy(Console:PConsoleDevice):LongWord;
function ConsoleDeviceRegister(Console:PConsoleDevice):LongWord;
function ConsoleDeviceDeregister(Console:PConsoleDevice):LongWord;
function ConsoleDeviceFind(ConsoleId:LongWord):PConsoleDevice;
function ConsoleDeviceFindByDevice(Device:PDevice):PConsoleDevice;
function ConsoleDeviceFindByName(const Name:String):PConsoleDevice; inline;
function ConsoleDeviceFindByDescription(const Description:String):PConsoleDevice; inline;
function ConsoleDeviceEnumerate(Callback:TConsoleEnumerate;Data:Pointer):LongWord;
function ConsoleDeviceNotification(Console:PConsoleDevice;Callback:TConsoleNotification;Data:Pointer;Notification,Flags:LongWord):LongWord;
Text console functions
function ConsoleWindowCreate(Console:PConsoleDevice;Position:LongWord;Default:Boolean):TWindowHandle;
function ConsoleWindowCreateEx(Console:PConsoleDevice;Font:TFontHandle;Size,State,Mode,Position:LongWord;Default:Boolean):TWindowHandle;
function ConsoleWindowDestroy(Handle:TWindowHandle):LongWord;
function ConsoleWindowShow(Handle:TWindowHandle):LongWord;
function ConsoleWindowHide(Handle:TWindowHandle):LongWord;
function ConsoleWindowFind(Console:PConsoleDevice;Position:LongWord):TWindowHandle;
function ConsoleWindowEnumerate(Console:PConsoleDevice;Callback:TConsoleWindowEnumerate;Data:Pointer):LongWord;
function ConsoleWindowCheckFlag(Handle:TWindowHandle;Flag:LongWord):Boolean;
function ConsoleWindowGetMode(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetState(Handle:TWindowHandle):LongWord;
function ConsoleWindowCreate(Console:PConsoleDevice;Position:LongWord;Default:Boolean):TWindowHandle;
function ConsoleWindowGetPosition(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetPosition(Handle:TWindowHandle;Position:LongWord):LongWord;
function ConsoleWindowGetMinX(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetMinY(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetMaxX(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetMaxY(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetRect(Handle:TWindowHandle):TConsoleRect; inline;
function ConsoleWindowSetRect(Handle:TWindowHandle;const ARect:TConsoleRect):LongWord; inline;
function ConsoleWindowGetViewport(Handle:TWindowHandle;var X1,Y1,X2,Y2:LongWord):LongWord;
function ConsoleWindowSetViewport(Handle:TWindowHandle;X1,Y1,X2,Y2:LongWord):LongWord;
function ConsoleWindowGetX(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetX(Handle:TWindowHandle;X:LongWord):LongWord;
function ConsoleWindowGetY(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetY(Handle:TWindowHandle;Y:LongWord):LongWord;
function ConsoleWindowGetXY(Handle:TWindowHandle;var X,Y:LongWord):LongWord;
function ConsoleWindowSetXY(Handle:TWindowHandle;X,Y:LongWord):LongWord;
function ConsoleWindowGetPoint(Handle:TWindowHandle):TConsolePoint;
function ConsoleWindowSetPoint(Handle:TWindowHandle;const APoint:TConsolePoint):LongWord;
function ConsoleWindowGetCols(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetRows(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetWidth(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetHeight(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetFormat(Handle:TWindowHandle):LongWord;
function ConsoleWindowGetForecolor(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetForecolor(Handle:TWindowHandle;Color:LongWord):LongWord;
function ConsoleWindowGetBackcolor(Handle:TWindowHandle):LongWord;
function ConsoleWindowSetBackcolor(Handle:TWindowHandle;Color:LongWord):LongWord;
function ConsoleWindowGetFont(Handle:TWindowHandle):TFontHandle;
function ConsoleWindowSetFont(Handle:TWindowHandle;Font:TFontHandle):LongWord;
function ConsoleWindowGetCursorXY(Handle:TWindowHandle;var X,Y:LongWord):LongWord;
function ConsoleWindowSetCursorXY(Handle:TWindowHandle;X,Y:LongWord):LongWord;
function ConsoleWindowGetCursorBlink(Handle:TWindowHandle):Boolean;
function ConsoleWindowSetCursorBlink(Handle:TWindowHandle;CursorBlink:Boolean):LongWord;
function ConsoleWindowGetCursorState(Handle:TWindowHandle):TCursorState;
function ConsoleWindowSetCursorState(Handle:TWindowHandle;CursorState:TCursorState):LongWord;
function ConsoleWindowCursorOn(Handle:TWindowHandle):LongWord;
function ConsoleWindowCursorOff(Handle:TWindowHandle):LongWord;
function ConsoleWindowCursorMove(Handle:TWindowHandle;X,Y:LongWord):LongWord;
function ConsoleWindowCursorBlink(Handle:TWindowHandle;Enabled:Boolean):LongWord;
function ConsoleWindowScrollUp(Handle:TWindowHandle;Row,Lines:LongWord):LongWord;
function ConsoleWindowScrollDown(Handle:TWindowHandle;Row,Lines:LongWord):LongWord;
function ConsoleWindowScrollLeft(Handle:TWindowHandle;Row,Col,Lines,Chars:LongWord):LongWord;
function ConsoleWindowScrollRight(Handle:TWindowHandle;Row,Col,Lines,Chars:LongWord):LongWord;
function ConsoleWindowClear(Handle:TWindowHandle):LongWord;
function ConsoleWindowClearEx(Handle:TWindowHandle;X1,Y1,X2,Y2:LongWord;Cursor:Boolean):LongWord;
function ConsoleWindowWrite(Handle:TWindowHandle;const AText:String):LongWord;
function ConsoleWindowWriteEx(Handle:TWindowHandle;const AText:String;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;
function ConsoleWindowWriteLn(Handle:TWindowHandle;const AText:String):LongWord;
function ConsoleWindowWriteLnEx(Handle:TWindowHandle;const AText:String;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;
function ConsoleWindowWriteChr(Handle:TWindowHandle;AChr:Char):LongWord;
function ConsoleWindowWriteChrEx(Handle:TWindowHandle;AChr:Char;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;
CRT console functions
procedure ConsoleAssignCrt(var F:Text);
procedure ConsoleClrEol;
procedure ConsoleClrScr;
procedure ConsoleDelay(MS:Word);
procedure ConsoleDelLine;
procedure ConsoleGotoXY(X,Y:Integer);
procedure ConsoleHighVideo;
procedure ConsoleInsLine;
function ConsoleKeypressed:Boolean;
procedure ConsoleLowVideo;
procedure ConsoleNormVideo;
procedure ConsoleNoSound;
function ConsoleReadKey:Char;
procedure ConsoleSound(Hz:Word);
procedure ConsoleTextBackground(Color:LongWord);
procedure ConsoleTextColor(Color:LongWord);
procedure ConsoleTextMode(Mode:Integer);
function ConsoleWhereX:Integer;
function ConsoleWhereY:Integer;
procedure ConsoleWindow(X1,Y1,X2,Y2:Integer);
procedure ConsoleScrollUp(Row,Lines:Integer);
procedure ConsoleScrollDown(Row,Lines:Integer);
procedure ConsoleWrite(const AText:String);
procedure ConsoleWriteLn(const AText:String);
procedure ConsoleWriteChr(AChr:Char);;
procedure ConsoleRead(var AText:String);
procedure ConsoleReadLn(var AText:String);
procedure ConsoleReadChr(var AChr:Char);
Return to Unit Reference