The text of a manual · part 12 of 19
PDT 3200 Run-Time Library Reference Manual: Chapter 2 Function Reference, pages 99 to 108
Pages 99 to 108 of 168, from PDT 3200 Run-Time Library Reference Manual
The original document is the PDF (949 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Symbol PDT-3200
Page 99
Chapter 2: Function Reference
BIOS_ScrollPageUp p_bios.h Syntax void BIOS_ScrollPageUp(UINT Lines, UINT Attrib, UINT TRow, UINT LCol, UINT BRow, UINT RCol);
Description Scrolls the speciÞed window on the active video page up. The area within the speciÞed window is scrolled up by the requested number of lines. Text that is scrolled beyond the top of the window is lost. The new lines that appear at the bottom of the window are Þlled with spaces carrying the Attrib speciÞed.
Parameters Lines Attrib
TRow LCol BRow RCol
Number of lines to scroll window. Screen attribute that is to be written to the screen as the screen is being scrolled. P_ATT_NORM speciÞes a normal white-on-black display attribute. P_ATT_INVERSE speciÞes a reverse-video (black-on-white) display attribute. Top line of window to scroll. Left column of window to scroll. Bottom line of window to scroll. Right column of window to scroll.
Returns None.
Sample See BIOS_ScrollPageDown().
2-71
Page 100
PDT 3200 Run-Time Library Reference Manual
BIOS_ScrollViewportDown p_bios.h Syntax void BIOS_ScrollViewportDown(UINT Lines,UINT Attrib);
Description Scrolls the window deÞned by the viewport down. The area within the physical display is scrolled down by the requested number of lines. Text that is scrolled beyond the bottom of the display is lost. The new lines that appear at the top of the display are Þlled with spaces carrying the Attrib speciÞed.
Parameters Lines Attrib
Number of lines to scroll window. Screen attribute that is to be written to the screen as the screen is being scrolled. P_ATT_NORM speciÞes a normal white-on-black display attribute. P_ATT_INVERSE speciÞes a reverse-video (black-on-white) display attribute.
Returns None.
Sample void AlternateClearViewport(void) { UCHAR scanCode, ch; // You can clear the screen with the scrolling // functions. BIOS_ScrollViewportDown (25, P_ATT_NORM, 0, 0, 7, 21); while (!BIOS_GetKeyStatus(&scanCode, &ch)); BIOS_KeyboardReadChar(&scanCode); }
2-72
Page 101
Chapter 2: Function Reference
BIOS_ScrollViewportUp p_bios.h Syntax void BIOS_ScrollViewportUp(UINT Lines, UINT Attrib);
Description Scrolls the window deÞned by the viewport up. The area within the physical display is scrolled up by the requested number of lines. Text that is scrolled beyond the top of the display is lost. The new lines that appear at the bottom of the display are Þlled with spaces carrying the Attrib speciÞed.
Parameters Lines Attrib
Number of lines to scroll window. Screen attribute that is to be written to the screen as the screen is being scrolled. P_ATT_NORM speciÞes a normal white-on-black display attribute. P_ATT_INVERSE speciÞes a reverse-video (black-on-white) display attribute.
Returns None.
Sample See BIOS_ScrollViewportDown().
2-73
Page 102
PDT 3200 Run-Time Library Reference Manual
BIOS_SetCursorPos p_bios.h Syntax void BIOS_SetCursorPos(UINT DisplayPage, UINT Row, UINT Column);
Description Sets the position of the cursor on a speciÞed display page.
Parameters DisplayPage Video display page of cursor to set. P_ACTIVE_PAGE indicates the current active display page. Row Row position of cursor. Column Column position of cursor.
Returns None.
Sample See BIOS_VideoReadCharAttr().
2-74
Page 103
Chapter 2: Function Reference
BIOS_SetCursorStyle p_bios.h Syntax void BIOS_SetCursorStyle(UINT StyleCode);
Description Sets the cursor style to one of Þve available styles. When using 8x16 fonts, cursor emulation must be enabled using BIOS_EnableCursorEmulation() for the styles to be effective.
Parameters StyleCode
Indicates the cursor style. P_CUR_NORM results in underscore. Equivalent to BIOS_SetCursorType(6,7). P_CUR_FULL results in full cursor. Equivalent to BIOS_SetCursorType(0,7). P_CUR_HTOP results in half cursor on top. Equivalent to BIOS_SetCursorType(0,3). P_CUR_HALF results in half cursor on bottom. Equivalent to BIOS_SetCursorType(3,7). P_CUR_OFF results in no cursor. Equivalent to BIOS_SetCursorType(1,0).
Returns None.
Sample See BIOS_CursorOff().
2-75
Page 104
PDT 3200 Run-Time Library Reference Manual
BIOS_SetCursorType p_bios.h Syntax void BIOS_SetCursorType(UINT StartLine, UINT EndLine);
Description Sets the cursor type using start and end lines to determine cursor size and positioning. For text modes with 6x8 or 8x8 fonts, cursor emulation converts the cursor to one of the deÞned cursor sizes (P_CURR_NORM, P_CURR_HALF, P_CURR_HTOP, P_CURR_FULL). Use BIOS_DisableCursorEmulation() to indicate that StartLine and Endline should be used without conversion.
Parameters StartLine EndLine
Indicates the top line of the cursor. Indicates the bottom line of the cursor.
Returns None.
Sample See BIOS_CursorOff(), BIOS_DisableCursorEmulation().
2-76
Page 105
Chapter 2: Function Reference
BIOS_SetCurXY p_bios.h Syntax void BIOS_SetCurXY(UINT Row, UINT Column);
Description Sets the position of the cursor on the active display page. This is a macro equivalent to BIOS_SetCursorPos(P_ACTIVE_PAGE, Row, Column).
Parameters Row Column
Row position of cursor. Column position of cursor.
Returns None.
Sample See BIOS_ClearScreen().
2-77
Page 106
PDT 3200 Run-Time Library Reference Manual
BIOS_SetDate p_bios.h Syntax void BIOS_SetDate(UINT Century, UINT Year, UINT Month, UINT Day);
Description Sets the current system date.
Parameters Century Year Month Day
Century (19 or 20). Year (0Ð99). Month (1Ð12). Day (1Ð31).
Returns None.
Sample See BIOS_GetDate().
2-78
Page 107
Chapter 2: Function Reference
BIOS_SetDisplayPage p_bios.h Syntax void BIOS_SetDisplayPage(UINT DisplayPage);
Description Sets the currently active display page.
Parameters DisplayPage Active display page. The range of values is dependent upon video mode.
Returns None.
Sample None.
2-79
Page 108
PDT 3200 Run-Time Library Reference Manual
BIOS_SetKbdCtrl p_bios.h Syntax void BIOS_SetKbdCtrl(UCHAR Features);
Description Sets the status of the keyboard control ßags. These ßags enable or disable special key sequences.
Parameters Features
Bit ßags deÞned by the following constants. These ßags may be combined in any logical combination. P_KBDCTRL_PRGM enables trigger programming. P_KBDCTRL_REBOOT enables CTRL-ALT-DEL key sequence.
Returns None.
Sample See BIOS_GetKbdCtrl().
2-80