CHAPTER 8 ESC/POS MODE (INTERFACE COMMANDS)
B-EP
Series
8-18
[Program
example]
/* Data for registration of writable characters */
unsigned char gaiji1[3] = { 0x10, 0x00, 0x00 };
unsigned char gaiji2[15] = { 0x10, 0x00, 0x00, 0x28, 0x00, 0x00, 0x44, 0x00, 0x00,
0x28, 0x00, 0x00, 0x10, 0x00, 0x00 };
fprintf( stdprn, "\033&\003AB");
/* Registration of writable characters 41H,42H code */
fputc( 1, stdprn );
/* 1 dot in the horizontal direction */
for(i=0;i<3;i++)
fputc( gaiji1[i], stdprn );
fputc( 5, stdprn );
/* 5 dots in the horizontal direction */
for(i=0;i<15;i++)
fputc( gaiji2[i], stdprn );
fprintf( stdprn, "\033%%");
/* Canceling writable characters */
fputc( 0, stdprn );
fprintf( stdprn, "ABCD\n");
fprintf( stdprn, "\033%%");
/* Setting writable characters */
fputc( 1, stdprn );
fprintf( stdprn, "ABCD\n");
example]
ABCD
•
CD