beautypg.com

Example – Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual

Page 152

background image

Function Reference 4-111

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(cStyl e)

// Take action

{

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

break;

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

break;

default: printf("\nInvalid input");

}

}