Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 19

PDT 3200 Run-Time Library Reference Manual: Chapter 2 Function Reference, pages 49 to 58

Pages 49 to 58 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 49

Chapter 2: Function Reference

BIOS_CursorOff p_bios.h Syntax void BIOS_CursorOff(void);

Description Turns off the cursor on the video display. The current cursor style is maintained while the cursor is not visible. Calling BIOS_CursorOn() restores the cursor.

Parameters None.

Returns None.

Sample #include <stdio.h> #include "p_bios.h" void Test_BIOS_Cursor (void) { UINT old_start, old_end; UINT test; char Key; BIOS_ClearScreen(P_ATT_NORM); printf ("Sample Code\n"); printf ("for Cursor\n"); printf ("control.\n"); // Preserve starting state BIOS_GetCursorType(&old_start,&old_end); // Full size BIOS_SetCursorStyle(P_CUR_FULL); printf ("\nP_CUR_FULL..."); scanf("%c",&Key); // Half size BIOS_SetCursorStyle(P_CUR_HALF); printf ("\nP_CUR_HALF...");

2-21

Page 50

PDT 3200 Run-Time Library Reference Manual scanf("%c",&Key); // Turn it off BIOS_CursorOff(); printf ("\nOFF..."); scanf("%c",&Key); // Check that it’s off test = BIOS_IsCursorOn(); printf ("\nState:%u 1=On 0=Off",test); scanf("%c",&Key); // Turn it back on BIOS_CursorOn(); printf ("\nP_CUR_HALF..."); scanf("%c",&Key); // Check that it’s on test = BIOS_IsCursorOn(); printf ("\nState:%u 1=On 0=Off",test); scanf("%c",&Key); // Top half BIOS_SetCursorStyle(P_CUR_HTOP); printf ("\nP_CUR_HTOP..."); scanf("%c",&Key); // Back to normal using scan lines BIOS_SetCursorStyle(P_CUR_NORM); printf ("\nP_CUR_NORM..."); scanf("%c",&Key); // Restore to original BIOS_SetCursorType(old_start,old_end); printf ("\nOriginal"); scanf("%c",&Key); }

2-22

Page 51

Chapter 2: Function Reference

BIOS_CursorOn p_bios.h Syntax void BIOS_CursorOn(void);

Description Turns on the cursor using the current cursor style. The current cursor style is maintained while the cursor is off, so the last visible cursor is the style restored.

Parameters None.

Returns None.

Sample See BIOS_CursorOff().

2-23

Page 52

PDT 3200 Run-Time Library Reference Manual

BIOS_DisableCursorEmulation p_bios.h Syntax void BIOS_DisableCursorEmulation(void);

Description Disables mapping of cursor start and end lines. When cursor emulation is disabled, BIOS_SetCursorType() sets the exact size of the cursor. When cursor emulation is enabled, the start and end lines passed to BIOS_SetCursorType() are converted to result in predeÞned cursor sizes (P_CURR_NORM, P_CURR_HALF, P_CURR_HTOP, P_CURR_FULL).

Parameters None.

Returns None.

Sample #include <stdio.h> #include "p_bios.h" void Test_BIOS_CursorEmulation (void) { UINT old_start, old_end; UINT test; char Key; BIOS_ClearScreen(P_ATT_NORM); // Preserve starting state BIOS_GetCursorType(&old_start,&old_end); // Cursor Emulation results in full // cursor when StartLine is 2 and Endline is 7 BIOS_EnableCursorEmulation(); BIOS_SetCursorType(2,7); printf ("Emulation on..."); scanf("%c",&Key);

2-24

Page 53

Chapter 2: Function Reference

// Without emulation, the cursor // uses actual lines provided BIOS_DisableCursorEmulation(); BIOS_SetCursorType(2,7); printf ("Emulation off..."); scanf("%c",&Key); // Restore to original BIOS_SetCursorType(old_start,old_end); }

2-25

Page 54

PDT 3200 Run-Time Library Reference Manual

BIOS_DisableVideo p_bios.h Syntax void BIOS_DisableVideo(void);

Description Turns off the video display. Disabling the video has no effect on the contents of video RAM. Information printed to the display while video is disabled is written to video RAM. It appears when the video is enabled using BIOS_EnableVideo().

Parameters None.

Returns None.

Sample #include <stdio.h> #include "p_bios.h" void VideoOnOff (void) { char Key; BIOS_ClearScreen(P_ATT_NORM); // Display first line of text printf ("Any key to turn off\n"); printf ("Again to turn back on\n"); scanf("%c",&Key); // Turn off the video display BIOS_DisableVideo(); // Send text to video RAM printf ("\nEntered while off"); scanf("%c",&Key); // Turn on the video display BIOS_EnableVideo(); scanf("%c",&Key); }

2-26

Page 55

Chapter 2: Function Reference

BIOS_EnableCursorEmulation p_bios.h Syntax void BIOS_EnableCursorEmulation(void);

Description Enables mapping of cursor start and end lines. When cursor emulation is disabled, BIOS_SetCursorType() sets the exact size of the cursor. When cursor emulation is enabled, the start and end lines passed to BIOS_SetCursorType() are converted to result in predeÞned cursor sizes (P_CURR_NORM, P_CURR_HALF, P_CURR_HTOP, P_CURR_FULL).

Parameters None.

Returns None.

Sample See BIOS_DisableCursorEmulation().

2-27

Page 56

PDT 3200 Run-Time Library Reference Manual

BIOS_EnableVideo p_bios.h Syntax void BIOS_EnableVideo(void);

Description Turns on the video display. Enabling the video has no effect on the contents of video RAM. Information printed to the display while video is disabled is written to video RAM. It appears when the video is enabled using BIOS_EnableVideo().

Parameters None.

Returns None.

Sample See BIOS_DisableVideo().

2-28

Page 57

Chapter 2: Function Reference

BIOS_GetCursorPos p_bios.h Syntax void BIOS_GetCursorPos(UINT DisplayPage, UINT *Row, UINT *Column);

Description Returns the position of the cursor on a speciÞed display page.

Parameters DisplayPage Video display page of cursor to check. P_ACTIVE_PAGE indicates the current active display page.

Returns Row Column Note:

Row position of cursor. Column position of cursor. The row and column numberings both begin at 0.

Sample See BIOS_GetDisplayPage().

2-29

Page 58

PDT 3200 Run-Time Library Reference Manual

BIOS_GetCursorType p_bios.h Syntax void BIOS_GetCursorType(UINT *StartLine, UINT *EndLine);

Description Returns the start and end lines of the current cursor.

Parameters None.

Returns StartLine EndLine

Indicates the top line of the cursor. Indicates the bottom line of the cursor.

Sample See BIOS_CursorOff() and BIOS_DisableCursorEmulation().

2-30