Difference between revisions of "Unit Console"

From Ultibo.org
Jump to: navigation, search
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


Description


To be documented

Constants


To be documented

Type definitions


To be documented

Public variables


To be documented

Function declarations



Initialization functions

[Expand]

procedure ConsoleInit;


Console functions

[Expand]

function ConsoleDeviceOpen(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceClear(Console:PConsoleDevice;Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceClose(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceScroll(Console:PConsoleDevice;X1,Y1,X2,Y2,Count,Direction:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawBox(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawLine(Console:PConsoleDevice;X1,Y1,X2,Y2,Color,Width:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawChar(Console:PConsoleDevice;Handle:TFontHandle;Ch:Char;X,Y,Forecolor,Backcolor:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawText(Console:PConsoleDevice;Handle:TFontHandle;const Text:String;X,Y,Forecolor,Backcolor,Len:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawPixel(Console:PConsoleDevice;X,Y,Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawBlock(Console:PConsoleDevice;X1,Y1,X2,Y2,Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;


[Expand]

function ConsoleDeviceDrawWindow(Console:PConsoleDevice;Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleDeviceGetPixel(Console:PConsoleDevice;X,Y:LongWord;var Color:LongWord):LongWord;


[Expand]

function ConsoleDeviceGetImage(Console:PConsoleDevice;X,Y:LongWord;Buffer:Pointer;Width,Height,Format,Skip:LongWord):LongWord;


[Expand]

function ConsoleDeviceCopyImage(Console:PConsoleDevice;const Source,Dest:TConsolePoint;Width,Height:LongWord):LongWord;


[Expand]

function ConsoleDeviceGetPosition(Console:PConsoleDevice;Position:LongWord;var X1,Y1,X2,Y2:LongWord):LongWord;


[Expand]

function ConsoleDeviceGetProperties(Console:PConsoleDevice;Properties:PConsoleProperties):LongWord;


[Expand]

function ConsoleDeviceCheckFlag(Console:PConsoleDevice;Flag:LongWord):Boolean;


[Expand]

function ConsoleDeviceGetMode(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceGetState(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceCreate:PConsoleDevice;


[Expand]

function ConsoleDeviceCreateEx(Size:LongWord):PConsoleDevice;


[Expand]

function ConsoleDeviceDestroy(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceRegister(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceDeregister(Console:PConsoleDevice):LongWord;


[Expand]

function ConsoleDeviceFind(ConsoleId:LongWord):PConsoleDevice;


[Expand]

function ConsoleDeviceFindByDevice(Device:PDevice):PConsoleDevice;


[Expand]

function ConsoleDeviceFindByName(const Name:String):PConsoleDevice; inline;


[Expand]

function ConsoleDeviceFindByDescription(const Description:String):PConsoleDevice; inline;


[Expand]

function ConsoleDeviceEnumerate(Callback:TConsoleEnumerate;Data:Pointer):LongWord;


[Expand]

function ConsoleDeviceNotification(Console:PConsoleDevice;Callback:TConsoleNotification;Data:Pointer;Notification,Flags:LongWord):LongWord;


Text console functions

[Expand]

function ConsoleWindowCreate(Console:PConsoleDevice;Position:LongWord;Default:Boolean):TWindowHandle;


[Expand]

function ConsoleWindowCreateEx(Console:PConsoleDevice;Font:TFontHandle;Size,State,Mode,Position:LongWord;Default:Boolean):TWindowHandle;


[Expand]

function ConsoleWindowDestroy(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowShow(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowHide(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowFind(Console:PConsoleDevice;Position:LongWord):TWindowHandle;


[Expand]

function ConsoleWindowEnumerate(Console:PConsoleDevice;Callback:TConsoleWindowEnumerate;Data:Pointer):LongWord;


[Expand]

function ConsoleWindowCheckFlag(Handle:TWindowHandle;Flag:LongWord):Boolean;


[Expand]

function ConsoleWindowGetMode(Handle:TWindowHandle):LongWord;


function ConsoleWindowGetState(Handle:TWindowHandle):LongWord;

[Expand]

function ConsoleWindowCreate(Console:PConsoleDevice;Position:LongWord;Default:Boolean):TWindowHandle;


[Expand]

function ConsoleWindowGetPosition(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetPosition(Handle:TWindowHandle;Position:LongWord):LongWord;


[Expand]

function ConsoleWindowGetMinX(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetMinY(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetMaxX(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetMaxY(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetRect(Handle:TWindowHandle):TConsoleRect; inline;


[Expand]

function ConsoleWindowSetRect(Handle:TWindowHandle;const ARect:TConsoleRect):LongWord; inline;


[Expand]

function ConsoleWindowGetViewport(Handle:TWindowHandle;var X1,Y1,X2,Y2:LongWord):LongWord;


[Expand]

function ConsoleWindowSetViewport(Handle:TWindowHandle;X1,Y1,X2,Y2:LongWord):LongWord;


[Expand]

function ConsoleWindowGetX(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetX(Handle:TWindowHandle;X:LongWord):LongWord;


[Expand]

function ConsoleWindowGetY(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetY(Handle:TWindowHandle;Y:LongWord):LongWord;


[Expand]

function ConsoleWindowGetXY(Handle:TWindowHandle;var X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowSetXY(Handle:TWindowHandle;X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowGetPoint(Handle:TWindowHandle):TConsolePoint;


[Expand]

function ConsoleWindowSetPoint(Handle:TWindowHandle;const APoint:TConsolePoint):LongWord;


[Expand]

function ConsoleWindowGetCols(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetRows(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetWidth(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetHeight(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetFormat(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowGetForecolor(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetForecolor(Handle:TWindowHandle;Color:LongWord):LongWord;


[Expand]

function ConsoleWindowGetBackcolor(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowSetBackcolor(Handle:TWindowHandle;Color:LongWord):LongWord;


[Expand]

function ConsoleWindowGetFont(Handle:TWindowHandle):TFontHandle;


[Expand]

function ConsoleWindowSetFont(Handle:TWindowHandle;Font:TFontHandle):LongWord;


[Expand]

function ConsoleWindowGetCursorXY(Handle:TWindowHandle;var X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowSetCursorXY(Handle:TWindowHandle;X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowGetCursorBlink(Handle:TWindowHandle):Boolean;


[Expand]

function ConsoleWindowSetCursorBlink(Handle:TWindowHandle;CursorBlink:Boolean):LongWord;


[Expand]

function ConsoleWindowGetCursorState(Handle:TWindowHandle):TCursorState;


[Expand]

function ConsoleWindowSetCursorState(Handle:TWindowHandle;CursorState:TCursorState):LongWord;


[Expand]

function ConsoleWindowCursorOn(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowCursorOff(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowCursorMove(Handle:TWindowHandle;X,Y:LongWord):LongWord;


[Expand]

function ConsoleWindowCursorBlink(Handle:TWindowHandle;Enabled:Boolean):LongWord;


[Expand]

function ConsoleWindowScrollUp(Handle:TWindowHandle;Row,Lines:LongWord):LongWord;


[Expand]

function ConsoleWindowScrollDown(Handle:TWindowHandle;Row,Lines:LongWord):LongWord;


[Expand]

function ConsoleWindowScrollLeft(Handle:TWindowHandle;Row,Col,Lines,Chars:LongWord):LongWord;


[Expand]

function ConsoleWindowScrollRight(Handle:TWindowHandle;Row,Col,Lines,Chars:LongWord):LongWord;


[Expand]

function ConsoleWindowClear(Handle:TWindowHandle):LongWord;


[Expand]

function ConsoleWindowClearEx(Handle:TWindowHandle;X1,Y1,X2,Y2:LongWord;Cursor:Boolean):LongWord;


[Expand]

function ConsoleWindowWrite(Handle:TWindowHandle;const AText:String):LongWord;


[Expand]

function ConsoleWindowWriteEx(Handle:TWindowHandle;const AText:String;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;


[Expand]

function ConsoleWindowWriteLn(Handle:TWindowHandle;const AText:String):LongWord;


[Expand]

function ConsoleWindowWriteLnEx(Handle:TWindowHandle;const AText:String;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;


[Expand]

function ConsoleWindowWriteChr(Handle:TWindowHandle;AChr:Char):LongWord;


[Expand]

function ConsoleWindowWriteChrEx(Handle:TWindowHandle;AChr:Char;X,Y:LongWord;Forecolor,Backcolor:LongWord):LongWord;


CRT console functions

[Expand]

procedure ConsoleAssignCrt(var F:Text);


[Expand]

procedure ConsoleClrEol;


[Expand]

procedure ConsoleClrScr;


[Expand]

procedure ConsoleDelay(MS:Word);


[Expand]

procedure ConsoleDelLine;


[Expand]

procedure ConsoleGotoXY(X,Y:Integer);


[Expand]

procedure ConsoleHighVideo;


[Expand]

procedure ConsoleInsLine;


[Expand]

function ConsoleKeypressed:Boolean;


[Expand]

procedure ConsoleLowVideo;


[Expand]

procedure ConsoleNormVideo;


[Expand]

procedure ConsoleNoSound;


[Expand]

function ConsoleReadKey:Char;


[Expand]

procedure ConsoleSound(Hz:Word);


[Expand]

procedure ConsoleTextBackground(Color:LongWord);


[Expand]

procedure ConsoleTextColor(Color:LongWord);


[Expand]

procedure ConsoleTextMode(Mode:Integer);


[Expand]

function ConsoleWhereX:Integer;


[Expand]

function ConsoleWhereY:Integer;


[Expand]

procedure ConsoleWindow(X1,Y1,X2,Y2:Integer);


[Expand]

procedure ConsoleScrollUp(Row,Lines:Integer);


[Expand]

procedure ConsoleScrollDown(Row,Lines:Integer);


[Expand]

procedure ConsoleWrite(const AText:String);


[Expand]

procedure ConsoleWriteLn(const AText:String);


[Expand]

procedure ConsoleWriteChr(AChr:Char);;


[Expand]

procedure ConsoleRead(var AText:String);


[Expand]

procedure ConsoleReadLn(var AText:String);


[Expand]

procedure ConsoleReadChr(var AChr:Char);



Return to Unit Reference