The LazyBoy Library Manual - CRT

NOTE: All coordinates used by the CRT are 0-based. So, an 80 character wide screen has columns 0-79. Do not assume there are 80 columns. The display could have less or more when in a VESA or other text mode. The same goes for the number of Rows. When DEBUG is defined, trying to set or use an invalid coordinates will cause the program to terminate with error messages.

WARNING: All macros that are part of CRT require DS to be the program Data Segment. For flat binary (COM files), this means DS must equal CS when using these macros.

Standard display functions:

TextModeChange the video mode.
ResetModeRestore video mode.
RequireTextModeTerminate with error if in a graphics mode.
GetTextModeReturn current video mode.
 
TextAttrSet text color foreground and background attributes.
TextColorSet text foreground color.
TextBackgroundSet text background color.
GetTextAttr Return current text color and background attributes.
 
ClrEolClear the current line from the cursor postion.
ClrScrClear the current window.
 
WindowSet the text display area bounds.
GotoXYMove cursor to specified or relative window location.
GetWhereXY Return CRT cursor position within window.
GetLimitXYReturn maximum XY position within window.
GetWindMinReturn upper left window coordinates.
GetWindMaxReturn lower right window coordinates.
 
WindowSizeReturn the bytes required to save the window.
WindowSaveSave the contents of the window to memory.
WindowLoadLoad the contents of memory to a window.
 
InsCharInsert a black space at the cursor postion.
DelCharDelete the character at the cursor position.
InsColumnInsert a column at the cursor position.
DelColumnDelete the column at the cursor position.
InsLineInsert a line at the cursor position.
DelLineDelete the line at the cursor position.
ScrollScroll the window a specified direction.
 
CursorHideHide the cursor.
CursorShowUnhide the cursor.
CursorNormalSet cursor shape to the same shape as at startup.
CursorSmallSet cursor shape to a single line.
CursorHalfSet cursur shape to half the font height.
CursorFullSet cursor shape to full height of the font.
CursorVisibleTest if cursor is not hidden.
CursorInvisibleTest if cursor is hidden.
 
DelayPause execution for specified time.
SoundSet PC SPeaker to specified frequency.
NoSoundTurn off PC speaker.

Display functions for stuff that is generally handled automatically:

CursorUpdateSynchronize the visible cursor location with the CRT.
CursorAdjustSynchronize the CRT with the visible cursor location.

Functions that are mostly for internal usage. Most do not process ASCII control codes or move the cursor to a new position when finished:

CRT_GetCharAttrReturn character and attribute at cursor position.
CRT_PutCharAttrPut a character using an attribute at cursor position.
CRT_PutCharPut a character using TEXTATTR at cursor position.
CRT_PutStringPut a string using TEXTATTR at cursor position.
CRT_WriteCharWrite a character using TEXTATTR at cursor position.
CRT_WriteStringWrite a string using TEXTATTR at cursor position.