[comp.unix.shell] How do you send NUL to a printer?

bill@twg.bc.ca (Bill Irwin) (05/31/91)

I'm having a problem sending codes to an Okidata 393 printer to
change the form length.  For this Oki there are two ways you can
do it: either set the form length in inches or lines.

Inches: ESC C NUL 11    [set to 11 inch form]

Lines:  ESC C 66        [set 66 lines per page]

The only difference is the NUL in the inches setting.  The way I
have been trying to send this is with:

echo -n "^[C\000011"

When this is directed to a file and viewed with vi, I get:

^[C11

Is the NUL supposed to show in vi?  When this is sent to the
printer it behaves as though it was sent the Lines setting
command, without the NUL.  Is it possible that the NUL is getting
trapped by the system?
-- 
Bill Irwin    -       The Westrheim Group     -    Vancouver, BC, Canada
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uunet!van-bc!twg!bill     (604) 431-9600 (voice) |     Your Computer  
bill@twg.bc.ca            (604) 430-4329 (fax)   |    Systems Partner