Embedded General Macro Capability for Printers
Original Publication Date: 1988-Apr-01
Included in the Prior Art Database: 2005-Feb-15
The functionality of a printer in a computing system is improved by enabling run-time general macros to be defined so as to add to or alter the definitions of codes subsequently issued to the printer by the computing system. In the example, the new printer control function is of the form ESC x, where ESC represents the escape code (the command prefix that sets the printer to accept the next data sent as a printer command) and x represents any code available for initiating the added function. This sequence defines a new code or control, or redefines an existing code or control. Its format is ESC x 0, or ESC x ccnt c(1)...c(ccnt) dcnt1 dcnt2 d(1)...d(dcnt). ccnt is the length (number of bytes) of the control code sequence defined. If 0, all currently-defined macros are cleared.