[comp.sys.amiga] CMD program

twills@actrix.co.nz (Tony Wills) (01/15/90)

In article <24816@swrinde.nde.swri.edu> kent@swrinde.UUCP (Kent D. Polk) writes:
>>     There is a program on your Workbench 1.3 disk (SYS:Utilities/Cmd)
>>called Cmd which allows you to redirect output from PRT: to any disk file.
>
>
>CMD only directs SER: or PAR: output to a file. By the time it has gotten
>this far, it has already passed throught the printer driver of your choice.

       CMD can be used for redirecting other devices besides SER: and
PAR:, specifically you can redirect the PRINTER device to a file.
This allows you to capture the ANSI escape sequences normally sent to be 
translated by your selected printer driver.  So you can now save 
a file that can be copied to anyones prt: device to produce a properly
formatted, etc, printout on their printer.
Additionally, as the console device uses ANSI escape sequences, you can
display this file on the console, and see the underline, bold, italic etc
as would be displayed on the printer.  There is a drawback to this latter
advantage - the console device doesn't fully implement the ANSI on/off 
attribute codes so that it requires a global command like ESC[m0 to turn
off any one of Bold, Italic, Underline etc, rather than the individual codes
available.
Lastly some versions of CMD had a bug (something to do with the length o
the device name specified) causing it to GURU on the PRINTER device.  The
original version released on the Fish disks worked ok.


     _
   o(_)
  /  /\              --- Tony Wills
                         NZAmigaUG (Wgtn)