⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mfbcap.5

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 5
📖 第 1 页 / 共 3 页
字号:
The format for setting a pixel in the current color at the x,y pixelcoordinate is defined by the \fBWPX\fR format string..PPThe format for drawing a circle with its center at the x,y pixelcoordinate and having a radius of z pixels is defined by the\fBDCS\fR format string..PPThe format for clearing the entire screen to the current color isgiven by the \fBGCS\fR format string.  If there is no such command sequence,it may be substituted by the command sequence that will write a solid boxin the current color over the entire screen..PPThere are three format strings fordefining the terminal's polygon command sequence.  First the \fBPLS\fR startingsequence is used to define x,y as the first of z pixel coordinates.This character sequence will be followed by z-1 occurrences of the \fBPLV\fRformat string which defines the remaining vertices of the polygonal path.Finally, an ending sequence that is defined by the \fBPLE\fR formatstring terminates the polygon sequence.  For terminalswhich have inconsistent formats for drawing solid polygons,the \fBPLSOL\fR sequence may be used in place of the \fBPLS\fRsequence.  If the terminal is capable of drawing a filled polygon in thecurrent fill pattern, then the \fBFPOLY\fR boolean should appear in the.I MFBCAPentry..PP.ne 5.B Video Layer Table.PPIf the terminal has a video layer table, then the \fBVLT\fR booleanmust be present in the .I MFBCAPentry..I MFBCAPassumes that the VLT uses the red-green-blue system for defining colors.If the \fBHLS\fR boolean capability is specified, then the RGB argumentsbecome HLS (hue-lightness-saturation) values.The maximum intensity of red, green, or blue in the VLT (or thelightness or saturation if using the HLS system) is given bythe \fBVTI\fR numeric capability.  The format for setting a particularentry of the VLT is given by the \fBVTE\fR format string.The \fBVTL\fR numeric value can be used to define the length of theVLT in terms of the number of bit planes..PP.ne 5.B Defining Styles.PPThe \fBLDS\fR string capability defines the sequence for (re)defininga line style corresponding to a particular style ID.  The \fBLDF\fRformat string is used to define an eight bit mask that representsthe new line style.  The \fBLDE\fR format string terminates thedefinition of the new line style..PPThe definition of a new fill pattern is more complicated than is the casefor line styles.It is necessary to transform an eight by eight intensity array intowhatever command syntax is required by the terminal.  The \fBFDS\fR stringcapability is used to begin the (re)definition of a fill pattern.The \fBFDF\fR format string defines one row or column of the fill patternusing an eight bit mask (one row of the eight by eight intensity array).If the \fBFDR\fR boolean is present, then it is assumed that the fillpattern is being defined by rows in which case the \fBFDF\fR sequenceis sent by the number of times defined by the \fBFDH\fR numeric capability.Otherwise, it is assumed that the fill pattern is defined by columns, andthe \fBFDF\fR sequence is sent by the number of times defined by the \fBFDW\fRnumeric capability.  If, for example, the number of rows in the fill patternis ten, the \fBFDF\fR sequence is first transmitted using each of the eightrows of the initial eight by eight intensity array, and then the sequence issent twice using the first and second rows of the initial intensity array.The \fBFDE\fR format string terminates the definition of the new fill pattern..PP.ne 5.B Raster Capabilities.PPThere are four format strings fordefining the terminal's raster copy command sequence.First the \fBRSCPS\fR startingsequence is used to begin the raster copy command.This character sequence will be followed the \fBRSSRC\fRformat string which defines the lower, left coordinate and lengthand width of the source area and the \fBRSDST\fR format stringwhich defines the lower left coordinate and the length and widthof the destination area.The \fBRSSRC\fR sequence appears first only if the \fBRSCSF\fR booleanis defined.Finally, an ending sequence that is defined by the \fBRSCPE\fR formatstring terminates the raster copy sequence..PP.ne 5.B Graphic Text.PP.I MFBCAPsupports a single font graphic text.  The height and width of thetext font are given respectively by the \fBGCH\fR and \fBGCW\fR numericcapabilities.  Graphics text is displayed with three format strings.A text string with z characters with a lower left justification at the x,ypixel coordinate is begun with the format string definedby \fBGTS\fR.  This will be followed by the transmission of the zcharacters and terminated by the format string defined by \fBGTE\fR.The graphic text can offset from the current graphics positionby setting the numeric capabilities \fBGTH\fR and \fBGTW\fR.The following figure demonstrates the assumed character font for thetwo characters "gh".  The character "0" marks a pixel in the character font,and the character "X" marks the x,y pixel coordinateto which the two characters where justified.  Note that the \fBGCH\fR,\fBGCW\fR, \fBGTH\fR, and \fBGTW\fR numeric capabilities must always benon-negative integers..sp 1.ne 16.nf.ta \w'XXXXXXXXXX'u +\w'X 'u +\w'X     'u +\w'X 'u +\w'X    'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'XXXXX'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'X 'u +\w'X 'u		 		_	.	.	.	.	.	.   	0	.	.	.	.	.		 		|	.	 	 	 	 	.   	0	 	 	 	 	.		 		|	.	 	 	 	 	.   	0	 	 	 	 	.		 		|	.	0	0	0	0	.   	0	0	0	0	 	.		 		|	0	 	 	 	 	0   	0	 	 	 	0	.		 		|	0	 	 	 	 	0   	0	 	 	 	 	0		_	GCH	0	 	 	 	 	0   	0	 	 	 	 	0		|		|	X	0	0	0	0	0   	0	 	 	 	 	0		|		|	.	 	 	 	 	0   	.	 	 	 	 	.	GTH		|	.	 	 	 	 	0   	.	 	 	 	 	.		|		|	0	 	 	 	 	0   	.	 	 	 	 	.		|		|	.	0	0	0	0	.   	.	.	.	.	.	.		-		-		 		 	|	-GCW-	|	-GTW-	|.fi.sp 1.PPIf the terminal supports rotatable graphic text, then the \fBROT\fRboolean is present in the.I MFBCAPentry.If rotated text is desired the \fBRTS\fR character sequence is issued priorto the the \fBGTS\fR sequence and defines a rotation of x degrees, wherex is between -360 and 360..PP.I MFBCAPsupports two graphic text modes.  If the graphic text can be destructive,then the \fBGTR\fR boolean is present in the.I MFBCAPentry, and the \fBRMO\fR format string specifies the character sequencefor entering the destructive graphic text mode.  If the terminal hasgraphic text that can overstrike, then the \fBGTO\fR boolean is presentin the .I MFBCAPentry, and the \fBOMO\fR format string defines the character sequencefor entering the overstriking graphic text mode..PP.ne 5.B Keyboard Control.PPFor terminals with special keyboard/cursor operations, .I MFBCAPprovides a set of string capabilities for controlling keyboard input.The keyboard is initialized, and the current graphics position is movedto the x,y pixel coordinate by the \fBKYS\fR format string.The current graphics position canbe offset upward from the above x,y pixel coordinate by setting values tothe \fBKYX\fR and \fBKYY\fR numeric capabilities.  The keyboardbackspace sequence is defined by the \fBKYB\fR format string (the isNO default for the backspace format string).  The keyboard isuninitialized by the \fBKYE\fR format string..PPIf the terminal does not have the above capabilities, a keyboard inputroutine, such as that used in.I mfb(3),can use the terminals graphic text capabilities to echo keyboard characterson a command line..PP.ne 5.B Pointing Device..PPIf the terminal has a pointing device, then the \fBPOD\fR boolean is presentin the.I MFBCAPentry.  If the pointing device has buttons, then the \fBPDB\fR booleanis set, the number of buttons is given by the \fBNPB\fR numeric capability,and the values returned by the respective buttons of thepointing device are defined by the \fBBU1\fR through \fBBU12\fR numericcapabilities..PPThe graphics pointing device is initialized with the \fBPDS\fR formatstring.  The \fBPDR\fR format string places the terminal in a waitingmode until the first graphic input.  When this event occurs, the locatorevent is decoded by the \fBPDF\fR format string.  The graphic pointing deviceis uninitialized by the \fBPDE\fR format string..PPIf the \fBPRI\fR booleanis set, one character is read immediately after the pointing deviceinitialization sequence \fBPDS\fR and before the pointing device is enabledby \fBPDR\fR.  This is useful for terminals that have a cursor and can readits current position but do not have the capabilityof a graphic event (.I i.e.,an x,y pixel coordinate that is read immediatelyafter a key or button is pushed on the terminal)..PPThe pointing device encoding format string \fBPDF\fR must assume thatthe pointing device will send one signature character.  After thepointing is activated by the \fBPDR\fR format string, the firstcharacter transmitted from the terminal must be identical to the firstcharacter of the \fBPDF\fR format string.  If the characters do not match,then the.I MFBDecoderoutine used by.I mfb(3)will return the first character that was transmitted by the terminal..PPThe \fBPRBON\fR string capability defines the character sequenceto enable rubber banding of the pointing device, and \fBPRBOFF\fRdisables the rubber banding. .I MFBCAPassumes that the center of rubber banding is the current graphicsposition that can be defined by the \fBMPS\fR format string defined above..PP.ne 5.B Special Modes.PPIf the graphics device is to be handled as a TTY, then the \fBTTY\fRboolean must be present in the.I MFBCAPentry.  If the graphics encoding can produce 8 bit, nonASCII characters,then the \fB8BB\fR boolean must be included.If the graphics device is a TTY and is to be driven in a.I RAWmode, then the \fBRAW\fR boolean must be included.  See the manual for.I tty(4).Typically, this mode is used only if the device has no keyboard..PP.I MFBCAPsupports four ALU writing modes.  These are the modes in which a pixelis updated when written over.  The four possible modes are JAM (replacemode), OR, EOR, and NOR.  The sequences for setting these modes are\fBALUJAM\fR, \fBALUOR\fR, \fBALUEOR\fR, and \fBALUNOR\fR respectively..PP.ne 5.B Similar Terminals.PPIf there are two very similar terminals, one can be defined as beinglike the other but with certain exceptions.  The string capability\fBMCE\fR is given with the name of the similar terminal.  The \fBMCE\fRmust be the last capability defined in the entry, and the combined lengthof the two entries must not exceed 4096 characters.  Because.I mfbroutines scan the entry from left to right, and because the \fBMCE\fRentry is replaced by the corresponding entry, the capabilities givenon the left override identical capabilities defined for the similar terminal.This is useful for defining different modes for a terminal, or for defining terminals with different peripherals..sp 1.ne 2.SH FILES.DT~cad/lib/mfbcap	    file containing terminal descriptions.ne 2.SH SEE ALSOtermcap(5), mfb(3), kic(CAD1).ne 2.SH AUTHORGiles Billingsley .ne 7.SH BUGS.PPThe total length of a single entry (excluding only escaped new lines)may not exceed 8192..PPThere is a restriction that allows a simple parser to be used for the.I MFBCAPfile.  The delimiter is assumed to be a comma that is not immediatelypreceded by a slash (\\) character.  String capabilities that terminatewith a slash character (as is the case for the vt125) must therefore separatethe delimiting comma and the slash character with a padding character..PPNot all programs support all entries.There are entries that may not be used by any program.

⌨️ 快捷键说明

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