MC—Media Copy
MC is the control sequence that enables the terminal to control all print functions. There are two variations—ANSI standard and VT mode.
Format
CSI 9/11 |
Pn 3/n |
i 6/9 |
ANSI standard. |
CSI 9/11 |
? 3/15 |
Pn 3/n |
i 6/9 |
VT mode. |
Parameters
Pn (ANSI standard)
indicates the following ANSI standard print functions:
Pn | Action | Notes on Print Page |
---|---|---|
0 | Prints the page that has the cursor. |
|
2 | Sends screen data through host port. | |
Pn | Action | Notes on Printer Controller Mode |
4 | Turns off printer controller mode. |
|
Pn | Action | |
5 | Turns on printer controller mode. | |
6 | Disables a printer-to-host session. | |
7 | Enables a printer-to-host session. |
Pn (VT mode)
indicates the following VT mode print functions:
Pn | Action | Note on Print Cursor Line |
---|---|---|
1 | Prints the line that has the cursor. | The cursor does not move. |
Pn | Action | Notes on Autoprint Mode |
4 | Turns off autoprint mode. | |
5 | Turns on autoprint mode. |
|
Pn | Action | Notes on Set/Reset Printer to Host |
8 | Disables communication from the printer port to the host. | CSI ? 8 i and CSI ? 9 i are media copy commands used in VT terminals to reset/set printer to host mode. |
9 | Enables communication from the printer port to the host. | |
Pn | Action | Note on Print Screen Data |
10 | Prints the data on the screen. | Printer extent mode (DECPEX) does not affect this function. |
Pn | Action | Notes on Print All Pages |
11 | Prints all pages in page memory. |
|
Note on MC Command
The ANSI Escape Sequences CSI 6 i and CSI 7 i to reset/set printer to host mode are functionally equivalent to CSI ? 8 i and CSI ? 9 i, respectively.