beautypg.com

Paxar Gold 6037EX User Manual

Page 146

background image

4-110 Programmer’s Manual

Example

#include

#include

#include "mmsultra.h"

void main(void)

{

int cStyle = 32;

// Cursor style

// Prompt user

printf("Choose cursor type:\nA (block)\nB (underscore)");

cStyle = _getch();

// Get input

switch(cStyle)

// Take action

{

case 'A': vidSetCursorType(0, 6);

break;

case 'B': vidSetCursorType(7, 7);

break;

default: printf("\nInvalid input");

}

}