1 /*- 2 * %sccs.include.proprietary.c% 3 * 4 * @(#)tabxerox.c 4.2 (Berkeley) 04/18/91 5 */ 6 7 #define INCH 240 8 /* 9 * XEROX 17x0 or DIABLO 16x0 10 pitch 10 * nroff driving table 11 * Titan 10 metal printwheel 12 * by Bill Tuthill, ucbvax!g:tut, 15dec82 13 */ 14 struct { 15 int bset; 16 int breset; 17 int Hor; 18 int Vert; 19 int Newline; 20 int Char; 21 int Em; 22 int Halfline; 23 int Adj; 24 char *twinit; 25 char *twrest; 26 char *twnl; 27 char *hlr; 28 char *hlf; 29 char *flr; 30 char *bdon; 31 char *bdoff; 32 char *ploton; 33 char *plotoff; 34 char *up; 35 char *down; 36 char *right; 37 char *left; 38 char *codetab[256-32]; 39 int zzz; 40 } t = { 41 /*bset*/ 0, 42 /*breset*/ 0177420, 43 /*Hor*/ INCH/60, 44 /*Vert*/ INCH/48, 45 /*Newline*/ INCH/6, 46 /*Char*/ INCH/10, 47 /*Em*/ INCH/10, 48 /*Halfline*/ INCH/12, 49 /*Adj*/ INCH/10, 50 /*twinit*/ "\0334", 51 /*twrest*/ "\0334", 52 /*twnl*/ "\r\n", 53 /*hlr*/ "\033D", 54 /*hlf*/ "\033U", 55 /*flr*/ "\033\n", 56 /*bdon*/ "\033W", 57 /*bdoff*/ "\033&", 58 /*ploton*/ "\0333", 59 /*plotoff*/ "\0334", 60 /*up*/ "\033\n", 61 /*down*/ "\n", 62 /*right*/ " ", 63 /*left*/ "\b", 64 /*codetab*/ 65 #include "code.xerox" 66