|
|
1.1 ! root 1: .TH DMDCAT 1 "630 MTG" ! 2: .SH NAME ! 3: dmdcat - send files to a 630 MTG connected printer. ! 4: .SH SYNOPSIS ! 5: \fBdmdcat\fR [ \f3\-s\f1 ] [ \f3\-b\f1 ] [ \f3\-v\f1 ] [ ! 6: \f3\-u\f1 ] [ \f3\-t\f1 ] [ \f3\-e\f1 ] [ file\&.\&.\&. ] ! 7: .SH DESCRIPTION ! 8: The ! 9: .I dmdcat ! 10: command is intended to be used ! 11: to send files to a printer connected to the Printer port of the 630 ! 12: MTG terminal. ! 13: \f2Dmdcat\f1 will send the concatenation of files specified on its ! 14: command line, or the standard input if no files are specified. ! 15: .PP ! 16: The data is sent to the terminal preceded by a \fIPrinter-On\fR Request ! 17: escape sequence, and is terminated by a \fIPrinter-Off\fR request ! 18: escape sequence. ! 19: The \fIPrinter-On\fR request escape sequence commands the terminal emulator to start ! 20: sending incoming data to the printer if the printer is available. The \fIPrinter-Off\fR request escape sequence tells ! 21: the terminal emulator to stop the sending. ! 22: The escape sequences sent are: ! 23: .RS 8 ! 24: .ft CW ! 25: .sp ! 26: \f3Printer On\f1 - ESC[?5;1i ! 27: .sp ! 28: \f3Printer Off\f1 - ESC[?4i ! 29: .ft 1 ! 30: .RE ! 31: .PP ! 32: If the \fB\-s\fR is present, \f2dmdcat\f1 uses this set of escape ! 33: sequences: ! 34: .RS 8 ! 35: .ft CW ! 36: .sp ! 37: \f3Printer On (no screen)\f1 - ESC[?5;2i ! 38: .sp ! 39: \f3Printer Off (no screen)\f1 - ESC[4i ! 40: .ft 1 ! 41: .RE ! 42: .sp ! 43: which tells the terminal emulator to start/stop ! 44: sending incoming data to the printer (if the printer is available) as before ! 45: but not to display this data on the screen. ! 46: .PP ! 47: The terminal responds with: ! 48: .RS 8 ! 49: .ft CW ! 50: .sp ! 51: ESC[?\f3ps\f1i where: ! 52: .sp ! 53: \f3ps\f1=0 indicates printer was not granted ! 54: .sp ! 55: \f3ps\f1=1 indicates printer was granted. ! 56: .ft 1 ! 57: .RE ! 58: .sp ! 59: If the printer was not granted, or if the terminal does not respond, ! 60: \fIdmdcat\fR displays a message and aborts. ! 61: .PP ! 62: The second option, \fB\-b\fR, strips backspaces ! 63: from the output of \f2dmdcat\f1. ! 64: If backspaces result in two or more characters appearing ! 65: in the same place, only the last character read is output. ! 66: This means that the printed output appears exactly as it ! 67: appears on the 630 MTG screen, without bold and underline. ! 68: This option is useful for printers which either cannot process ! 69: backspaces or are slow in processing backspaces. ! 70: .PP ! 71: \fIDmdcat\fR is a shell program that calls \fIcat\fR(1) and will pass ! 72: the options \fB-u\fR, \fB-v\fR, \fB-t\fR, and \fB-e\fR to \fIcat\fR(1). ! 73: ! 74: .SH FILES ! 75: $DMD/lib/dmdgetpr reads terminal response ! 76: ! 77: .SH SEE ALSO ! 78: cat(1), col(1) in the ! 79: \f2UNIX System V User Reference Manual\f1. ! 80: .br ! 81: \f2630 MTG Terminal User's Guide\f1. ! 82: .SH DIAGNOSTICS ! 83: \f2Dmdcat\f1 uses the \f2col\f1(1) command to ! 84: strip backspaces with the \fB\-b\fR option. ! 85: \fICol\f1(1) is not available on all \s-1UNIX\s+1 ! 86: systems. ! 87: The \fB\-b\fR option will give ! 88: an error message if it cannot locate the \f2col\f1(1) command. ! 89: .PP ! 90: \f2Dmdcat\f1 only works if it is executed from ! 91: the default 630 MTG terminal emulator or any terminal emulator that supports the ! 92: escape sequence sets described above.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.