Intermec 6100 Reference Guide

Page of 328
APPENDIX A
Sample Configuration Files
A-18    PEN*KEY
R
 6100 Computer Programmer’s Reference Guide
Bitmap Text Output
The standard Borland BGI drivers do not fill the background color when
rendering the bitmap font, which means the text must be erased before it can be
written over, and erasure requires the use of the bar() function to clear the text
area (text cannot be written over with new text or spaces).  Most developers find
this behavior troublesome.  The N6100.BGI driver fills the background of bitmap
text, eliminating tedious text erasure gyrations.  This new textmode is set using
the BGI setwritemode() function and passing the BGI_NIFTYTEXT constant
(defined in N6100.H).  To go back to normal BGI text rendering, pass
BGI_NORMALTEXT to the setwritemode() function (which also seems
troublesome).
EXAMPLE:
Sample N6100.H File
The following is a sample listing of the N6100.H file written by Ryle Design used as an inter-
face for a BGI driver.
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Header N6100.H
Header file containing public declarations for the Ryle Design
N6100.BGI driver written for the Norand Corporation.
Copyright (c) 1995 Norand Corporation
Written by Ryle Design, PO Box 22, Mt. Pleasant MI 48804 USA
Voice/Fax: 517.773.0587 Email: 73047.1765@compuserve.com
V1.00 08.95 thl
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
#ifdef __DPMI32__
#error N6100.BGI not supported under BGI32
#endif
/* landscape mode flag */
#define BGI_LANDSCAPE
0x0000
/* rotated “portrait mode” flag */
#define BGI_PORTRAIT
0x0008
/* bitmap text modes */
#define BGI_NORMALTEXT
0x0002
#define BGI_NIFTYTEXT
0x0003
void _Cdec1 n6100_driver(void);
/* end header N6100.H */
A. Sample
Configuration Files