title: Printing to a dot-matrix printer with raw ascii from CUPS
body: <p>Please excuse my newbness - I haven't managed to find a functioning answer to this. Perhaps because I don't understand the syntax, or perhaps because it's not quite working with my printer.</p>
  
  <p>I'm trying to print an ASCII file from a mac to a Panasonic KX-P1150, using cups. In Terminal I type:</p>
  
  <p>lp -o raw filename.txt</p>
  
  <p>And it works. However, I'd like to select a higher pitch (smaller point size), which apparently can be done by telling the printer to ESC-g. </p>
  
  <p><em>MICRON PITCH
  Sets printing to 15 characters per inch (up to 120 characters per line).</em></p>
  
  <pre><code>Name:   ESC     g
  Dec.:   27      103
  Hex.:   1B      67
  </code></pre>
  
  <p>What I would love to do is just embed that ESC-g at the top of my text file, presumably as Hex, but no matter what syntax I use, the printer just prints the command without changing its settings.</p>
  
  <p>I've tried \x1b, '[, and some other things. Perhaps this is really simple and someone can set me straight on the syntax?</p>
  
  <p>Many thanks for your time.</p>