Kbdrestoremode - Paxar Gold 6037EX Programmer's Manual

Paxar printer programmer's manual
Table of Contents

Advertisement

k b d R e s t o r e M o d e
Description
Changes the keypad's data entry mode to the one saved
previously when the application called kbdGetMode.
Syntax
void kbdRestoreMode(int);
Parameters
1
Numeric/Normal mode
2
Upper-case Alpha mode
4
Lower-case Alpha mode
Return Values
None
Example
#include <stdio.h>
#include <conio.h>
#include "mmsultra.h"
void main(void)
{
int iSavedmode = 0;
int iInput = 0;
iSavedmode = kbdGetMode();
kbdSetCaps();
printf("Press an alphabetic\nkey: "); // Test the mode
while (_kbhit())
;
iInput = _getch();
printf("\nYou pressed %c\n", iInput);
kbdRestoreMode(iSavedmode);
4-4
Programmer's Manual
// Saved mode
// Alpha key entered
// Save the current mode
// To Upper-case Alpha
// Return to prev. mode

Advertisement

Table of Contents
loading

This manual is also suitable for:

Monarch pathfinder ultra gold 6037ex

Table of Contents