home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 377b.lha / devices / printer / hp / data.c next >
Encoding:
Text File  |  1980-02-03  |  5.8 KB  |  153 lines

  1. /* Copyright (c) 1990 Commodore-Amiga, Inc.
  2.  *
  3.  * This example is provided in electronic form by Commodore-Amiga, Inc. for
  4.  * use with the 1.3 revisions of the Addison-Wesley Amiga reference manuals. 
  5.  * The 1.3 Addison-Wesley Amiga Reference Manual series contains additional
  6.  * information on the correct usage of the techniques and operating system
  7.  * functions presented in this example.  The source and executable code of
  8.  * this example may only be distributed in free electronic form, via bulletin
  9.  * board or as part of a fully non-commercial and freely redistributable
  10.  * diskette.  Both the source and executable code (including comments) must
  11.  * be included, without modification, in any copy.  This example may not be
  12.  * published in printed form or distributed with any commercial product.
  13.  * However, the programming techniques and support routines set forth in
  14.  * this example may be used in the development of original executable
  15.  * software products for Commodore Amiga computers.
  16.  * All other rights reserved.
  17.  * This example is provided "as-is" and is subject to change; no warranties
  18.  * are made.  All use is at your own risk.  No liability or responsibility
  19.  * is assumed.
  20.  */
  21.  
  22. char *CommandTable[] = {
  23.     "\375\033E\375",/* 00 aRIS reset            */
  24.     "\377",        /* 01 aRIN initialize            */
  25.     "\012",        /* 02 aIND linefeed            */
  26.     "\015\012",    /* 03 aNEL CRLF                */
  27.     "\033&a-1R",    /* 04 aRI reverse LF            */
  28.  
  29.             /* 05 aSGR0 normal char set        */
  30.     "\033&d@\033(sbS",
  31.     "\033(s1S",    /* 06 aSGR3 italics on            */
  32.     "\033(sS",    /* 07 aSGR23 italics off        */
  33.     "\033&dD",    /* 08 aSGR4 underline on        */
  34.     "\033&d@",    /* 09 aSGR24 underline off        */
  35.     "\033(s5B",    /* 10 aSGR1 boldface on            */
  36.     "\033(sB",    /* 11 aSGR22 boldface off        */
  37.     "\377",        /* 12 aSFC set foreground color        */
  38.     "\377",        /* 13 aSBC set background color        */
  39.  
  40.     "\033(s10h1T",    /* 14 aSHORP0 normal pitch        */
  41.     "\033(s12h2T",    /* 15 aSHORP2 elite on            */
  42.     "\033(s10h1T",    /* 16 aSHORP1 elite off            */
  43.     "\033(s15H",    /* 17 aSHORP4 condensed fine on        */
  44.     "\033(s10H",    /* 18 aSHORP3 condensed fine off    */
  45.     "\377",        /* 19 aSHORP6 enlarge on        */
  46.     "\377",        /* 20 aSHORP5 enlarge off        */
  47.  
  48.     "\033(s7B",    /* 21 aDEN6 shadow print on        */
  49.     "\033(sB",    /* 22 aDEN5 shadow print off        */
  50.     "\033(s3B",    /* 23 aDEN4 double strike on        */
  51.     "\033(sB",    /* 24 aDEN3 double strike off        */
  52.     "\377",        /* 25 aDEN2 NLQ on            */
  53.     "\377",        /* 26 aDEN1 NLQ off            */
  54.  
  55.     "\377",        /* 27 aSUS2 superscript on        */
  56.     "\377",        /* 28 aSUS1 superscript off        */
  57.     "\377",        /* 29 aSUS4 subscript on        */
  58.     "\377",        /* 30 aSUS3 subscript off        */
  59.     "\377",        /* 31 aSUS0 normalize the line        */
  60.     "\033&a-.5R",    /* 32 aPLU partial line up        */
  61.     "\033=",    /* 33 aPLD partial line down        */
  62.  
  63.     "\033(s3T",    /* 34 aFNT0 Typeface 0            */
  64.     "\033(s0T",    /* 35 aFNT1 Typeface 1            */
  65.     "\033(s1T",    /* 36 aFNT2 Typeface 2            */
  66.     "\033(s2T",    /* 37 aFNT3 Typeface 3            */
  67.     "\033(s4T",    /* 38 aFNT4 Typeface 4            */
  68.     "\033(s5T",    /* 39 aFNT5 Typeface 5            */
  69.     "\033(s6T",    /* 40 aFNT6 Typeface 6            */
  70.     "\033(s7T",    /* 41 aFNT7 Typeface 7            */
  71.     "\033(s8T",    /* 42 aFNT8 Typeface 8            */
  72.     "\033(s9T",    /* 43 aFNT9 Typeface 9            */
  73.     "\033(s10T",    /* 44 aFNT10 Typeface 10        */
  74.                               
  75.     "\033(s1P",    /* 45 aPROP2 proportional on        */
  76.     "\033(sP",    /* 46 aPROP1 proportional off        */
  77.     "\033(sP",    /* 47 aPROP0 proportional clear        */
  78.     "\377",        /* 48 aTSS set proportional offset    */
  79.     "\377",        /* 49 aJFY5 auto left justify        */
  80.     "\377",        /* 50 aJFY7 auto right justify        */
  81.     "\377",        /* 51 aJFY6 auto full jusitfy        */
  82.     "\377",        /* 52 aJFY0 auto jusity off        */
  83.     "\377",        /* 53 aJFY3 letter space        */
  84.     "\377",        /* 54 aJFY1 word fill            */
  85.  
  86.     "\033&l8D",    /* 55 aVERP0 1/8" line spacing        */
  87.     "\033&l6D",    /* 56 aVERP1 1/6" line spacing        */
  88.     "\377",        /* 57 aSLPP set form length        */
  89.     "\033&l1L",    /* 58 aPERF perf skip n (n > 0)        */
  90.     "\033&lL",    /* 59 aPERF0 perf skip off        */
  91.                         
  92.     "\377",        /* 60 aLMS set left margin        */
  93.     "\377",        /* 61 aRMS set right margin        */
  94.     "\377",        /* 62 aTMS set top margin        */
  95.     "\377",        /* 63 aBMS set bottom margin        */
  96.     "\377",        /* 64 aSTBM set T&B margins        */
  97.     "\377",        /* 65 aSLRM set L&R margins        */
  98.     "\0339\015",    /* 66 aCAM clear margins        */
  99.  
  100.     "\377",        /* 67 aHTS set horiz tab        */
  101.     "\377",        /* 68 aVTS set vert tab            */
  102.     "\377",        /* 69 aTBC0 clear horiz tab        */
  103.     "\377",        /* 70 aTBC3 clear all horiz tabs    */
  104.     "\377",        /* 71 aTBC1 clear vert tab        */
  105.     "\377",        /* 72 aTBC4 clear all vert tabs        */
  106.     "\377",        /* 73 aTBCALL clear all h & v tabs    */
  107.     "\377",        /* 74 aTBSALL set default tabs        */
  108.  
  109.     "\377",        /* 75 aEXTEND extended commands        */
  110.     "\377"        /* 76 aRAW next 'n' chars are raw    */
  111. };
  112.  
  113. char *ExtendedCharTable[] = {
  114. /*
  115.     " ", "!", "c", "L", "o", "Y", "|", "S",
  116.  
  117.     "\"", "c", "a", "<", "~", "-", "r", "-",
  118.  
  119.     "*", "+", "2", "3", "'", "u", "P", ".",
  120.  
  121.     ",", "1", "o", ">", "/", "/", "/", "?",
  122.  
  123.     "A", "A", "A", "A", "A", "A", "A", "C",
  124.  
  125.     "E", "E", "E", "E", "I", "I", "I", "I",
  126.  
  127.     "D", "N", "O", "O", "O", "O", "O", "x",
  128.  
  129.     "O", "U", "U", "U", "U", "Y", "P", "B",
  130.  
  131.     "a", "a", "a", "a", "a", "a", "a", "c",
  132.  
  133.     "e", "e", "e", "e", "i", "i", "i", "i",
  134.  
  135.     "d", "n", "o", "o", "o", "o", "o", "/",
  136.  
  137.     "o", "u", "u", "u", "u", "y", "p", "y"
  138. */
  139.  
  140.     " ", "\270", "\277", "\273", "\272", "\274", "|", "\275",
  141.     "\253", "c", "\371", "\373", "~", "\366", "r", "\260",
  142.     "\263", "\376", "2", "3", "\250", "\363", "\364", "\362",
  143.     ",", "1", "\372", "\375", "\367", "\370", "\365", "\271",
  144.     "\241", "\340", "\242", "\341", "\330", "\320", "\323", "\264",
  145.     "\243", "\334", "\244", "\245", "\346", "\345", "\246", "\247",
  146.     "\343", "\266", "\350", "\347", "\337", "\351", "\332", "x",
  147.     "\322", "\255", "\355", "\256", "\333", "\261", "\360", "\336",
  148.     "\310", "\304", "\300", "\342", "\314", "\324", "\327", "\265",
  149.     "\311", "\305", "\301", "\315", "\331", "\325", "\321", "\335",
  150.     "\344", "\267", "\312", "\306", "\302", "\352", "\316", "-\010:",
  151.     "\326", "\313", "\307", "\303", "\317", "\262", "\361", "\357"
  152. };
  153.