ITEM: BH6900L

condensed print on/off with command line flag for ASCII virtual


ENV:
        AIX 3.2.5
        7013-590
DESC:
        We have a Tally brand ASCII printer attached to AIX.  I know
        the escape sequences to put the printer into and out of
        condensed print mode.  What can I do to use the -K flag to
        control turning condensed mode on or off?
ACT:
        lsvirprt
           Select the desired virtual printer
                ia~v
                  Add the K flag into the list of legal command line
                  flags:
                    %f[bgijpqstuvxzIJLOQXZ] changes to:
                    %f[bgijpqstuvxzIJKLOQXZ] 

                ci~v

                The ci (command to initialize printer) should be blank
                for a generic ASCII printer... Add these lines:

 %?            \
     %G_K      PUSH: (Condensed Print (!: no;  +: yes))
     %{1}      PUSH: (Character Constant '+' -> Integer)
     %=        PUSH: (pop2 = pop1 ?)
 %t            \
     'condensed_sequence'
 %e            \
     'uncondensed_sequence'
 %;            \

        Where condensed_sequence and uncondensed_sequence are 
        whatever commands are necessary to take your printer in and
        out of condensed mode.

        Now if you send a print job with:

        qprt -Pqueue /your/file
                It is not condensed
        qprt -Pqueue -K1 /your/file
                It will print condensed


Support Line: condensed print on/off with command line flag for ASCII virtual ITEM: BH6900L
Dated: April 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:21
Comments or suggestions? Contact us