A SERVICE OF

logo

4-110 Programmer’s Manual
Example
#include <conio.h>
#include <stdio.h>
#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");
}
}