va.4

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 4 代码 · 共 123 行

4
123
字号
.\" SCCSID: @(#)va.4	8.1	9/11/90.\" SCCSID: @(#)va.4	8.1	9/11/90.TH va 4 VAX "" Unsupported.SH Nameva \- Benson-Varian interface.SH Syntax.B "controller va0 at uba0 csr 0164000 vector vaintr".br.B "disk vz0 at va0 drive 0".SH Description.NTThe configuration description, while counter-intuitive,is actually as shown above..NE.PPThe Benson-Varian printer/plotter in normally used with the programs.MS vpr 1 ,.MS vprint 1or.MS vtroff 1 .This description is designed for those who wish to drive the Benson-Variandirectly..PPIn print mode, the Benson-Varian uses a modified ASCII character set.Most control characters print various non-ASCII graphics such as daggers,sigmas, copyright symbols, etc.Only LF and FF are used as format effectors.  LF acts as a newline,advancing to the beginning of the next line, and FF advances to the top ofthe next page..PPIn plot mode, the Benson-Varian prints one raster line at a time.An entire raster line of bits (2112 bits = 264 bytes) is sent, andthen the Benson-Varian advances to the next raster line..PP.B Note:The Benson-Varian must be sent an even number of bytes.If an odd number is sent, the last byte will be lost.Nulls can be used in print mode to pad to an even number of bytes..PPTo use the Benson-Varian yourself,you must realize that you cannot open the device,.I /dev/va0if there is a daemon active.You can see if there is an active daemon by doing a.IR lpq (1)and seeing if there are any files being printed..PPTo set the Benson-Varian into plot mode include the file.RI < sys/vcmd.h >and use the following.IR ioctl (2)call.IPioctl(fileno(va), VSETSTATE, plotmd);.PPwhere.I plotmdis defined to be.IP\fBint\fR plotmd[] = { VPLOT, 0, 0 };.PPand.I vais the result of a call to.I fopenon stdio.When you finish using the Benson-Varian in plot mode you should advance toa new pageby sending it a FF after putting it back into print mode, i.e. by.PP'nf	\fBint\fR prtmd[] = { VPRINT, 0, 0 };	\&...	fflush(va);	ioctl(fileno(va), VSETSTATE, prtmd);	write(fileno(va), "\ef\e0", 2);.fi.PP.BR N.B. :If you use the standard I/O library with the Benson-Varian you.B mustdo.IPsetbuf(vp, vpbuf);.PPwhere.I vpbufis declared.IP\fBchar\fR vpbuf[BUFSIZ];.PPotherwise the standard I/O library, thinking that the Benson-Varianis a terminal (since it is a character special file) will not adequately bufferthe data you are sending to the Benson-Varian.This will cause it to run.B extremelyslowly and tend to grind the system to a halt..SH DiagnosticsThe following error numbers are significant at thetime the device is opened..TP 10[ENXIO]The device is already in use..TP[EIO]The device is offline..PPThe following message may be printed on the console..PP\fBva%d: npr timeout\fR..brThe device was not able to get data fromthe UNIBUS within the timeout period, most likely because some otherdevice was hogging the bus. .SH Files.PN /dev/va0.SH See Alsolpr(1),vtroff(1),vp(4),vfont(5),lpd(8)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?