Home
PLOT 10 - Textfiles
Contents
1. 10 DRAuRcao 20 MOUER C 20 40 DRAURC1S 15 DRAURCG 8g DRAUR 3 DRAURC 7 3 DRAWR 2 2 MOUER CS 5 RETURN END A 3 ROUTINE TO DRAW A GROUND SYMBOL SUBROUTINE GROUND CALL DRAWR 10 CALL MOUER O 16 CALL DRAUR CO 38 CALL MOUER S 27 NS CALL DRAUR CO 82 CALL MOVER S 1 7 CALL gt CALL MOVER S 7 CALL DRAUR CO 2 RETURN END Examples of circuits which can be drawn using the above program transistor amplifier 4 0 4010 01 User 4010A01 User A logic gate REV A MAR 1978 Vcc A 5 TERMINAL CONTROL SYSTEM COMMON VARIABLES All functions and subroutines which required users of earliest releases Release 2 0 and 2 1 of the Terminal Control System to access the TKTRNX common area are now supported by routines therefore conversion of programs which used earliest releases TCS is fairly simple The conversion consists of deleting the TKTRNX common area from these programs and changing the code lines which set the common variables so that the appropriate subroutines are called as follows Variables in TKTRNX common Subroutines in Release 3 or Level 1 TRSINF TRCOSF RROTAT TRSCAL RSCALE KLMRGN KRMRGN SETMRG The tab routines are now somewhat different that in earliest versions Release 2 0 or 2 1 in that no tab tables are provided in the common area The user must insert a dimension st
2. ACTION ABSOLUTE RELATIVE ABSOLUTE RELATIVE MOVABS MOVREL MOVEA MOVER DRWABS DRWREL DRAWA DRAWR PNTABS PNTREL POINTA POINTR DSHABS DSHREL DASHA DASHR Figure 3 12 4010A01 User 4 UTILITY ROUTINES ALPHANUMERIC 4 1 By allowing the Terminal Control System to monitor OUTPUT alphanumeric A N output rather than using FORTRAN READ and WRITE statements it is possible to maintain Terminal status especially the tracking of the beam position This tracking is required for tab and margin control as well as for facilitating the mixture of A N and graphic output As with graphic output alphanumeric output is buffered or stored until a routine is called to dump the buffer or until the buffer is full ENTERING A N 4 2 At times the user may wish to output A N data other MODE than through the Terminal Control System such cases it Subroutine ANMODE is the user s responsibility to insure that the Terminal is in A N mode This can be done by using ANMODE It is not necessary to call ANMODE when using the Terminal Control System routines as they will automatically call it whenever necessary ANMODE can be used to dump the output buffer CALLING SEQUENCE CALL ANMODE A N CHARACTER 4 3 Non control alphanumeric characters are monitored OUTPUT when output through ANCHO mode will be entered if Subroutine ANCHO necessary and the Terminal Status Area representation of the screen beam position is updated as charact
3. 260 TO 150 CALL HDCOP GO 195 DETERMINE ROTATION SYMBOL 150 RANGLE CY TO YFROM 5 2957795131 CALL RROTATCRANGLE D IFCKEY NE IRESIS GO TO 160 CALL RESIST CALL DRAUACXTO YTO GO TO 100 160 IFCKEY ICAP IGO TO 170 CALL CAP CALL DRAUACXTO YTO GO TO 109 170 IFCKEY ITRANS GO TO 180 CALL TRANS CALL MOVEACXFROM YFROM BEAM LEFT AT START POINT FOR TRANSISTOR GO TO 105 180 IF KEY IGRND GO TO 100 CALL GROUND CALL MOUERG CXFROM YF ROM C BEAM LEFT AT START POINT FOR GROUND SYMBOL 30 105 END 4010A01 User 4010 01 User subprograms draw four different symbols Symbol Keyboard Character registor R Capacitor C transistor T ground G ROUTINE TO DRAW A RESISTOR SUBROUTINE RESIST CALL 0868 10 CALL DRAUR 3 10 CALL DRAUR G 20 CALL DRAUR G 20 2 AM CALL DRAUR CG 20 CALL DRAUR c6 20 CALL DRAURCGe 20 gt CALL DRAWR 3 10 RETURN END SUEROUTINE TO DRAW A CAPACITOR SUBROUTINE CAP CALL DReURC19 0 CALL MOVER 0 20 CALL DRAUR Q 40 ALL 10 40 CALL DRAUR Q 40 CALL MOUER CO 20 RETURN END C ROUTINE TO DRAW A TRANSISTOR SUBROUTINE TRANS CALL CALL CALL CALL CALL CALL CALL CALL CALL CALL CALL CALL CALL CALL CALL DRAWR 29 8 DRAURCO 20 DRAWRCe 0 DRAURCO 40 DRAUR C 2 0 DPAUR O
4. DRAW GRID SHOWING THE WINLOW CALL GHIL WITH INCKEMENT OF 3 CALL MOVEACRKDATAC 1 10 LO 160 1 30 LESGEFEZ lIO I 3 1e CAT BDASHSACERDATACIO DEGERE 12 GEG pur TICs p gt See page 6 3 for the coding of Subroutine GRID 4010A01 User Figure 6 6 FLOT THE LATA STEFPFING THE ANGLE FROM 10 10 100 LEGHEFS 6 7 second example demonstrates how the same plot would look if it were displayed with a virtual data window with a radius between 90 and 100 Again the radius suppression is f Notice that all grid lines specified below 90 are clipped CALL 30 DEFINE THE TERMINAL WINDOW CALL 1101 10 00 100 100 EGG C THE LATA WINDOW WITH 1 5 FROM 96 TO 100 CALL 1711 110 100 90 Oes 1006 C SPECIFY POLAR WINDOW DISPLAYED BETWEEN 10 AND 100 5 WITH RADIUS SUPPRESSION OF ZERO LhAW A GEIL SHOWING THE WINDOW CALL GEIL C FLOT THE STEFFING THE ANGLE FROM 16 TO 100 DEGREES C WITH INCREMENT OF 3 CALL MOVEACRLATAC 1 10e DO 10 1 30 10 3 10 CALL LASHSACRDATACI s DEGREES 12 CALL FINIT1C s Q S1QF ENL Figure 6 7 The data and dimension statement which precede INITT are the same as those of Figure 6 6 6 8 4010A01 User 10 CALL DEFINE CALL DEFINE CALL The third example using the same data points and the same virtual data wi
5. All or any portion of virtual space may be viewed at any time through the technique of windowing The User defines in user units a rectangle the virtual window which utilizes that part of virtual space he wishes to view Graphic lines vectors and portions of lines which lie outside the virtual window are automatically eliminated or clipped by the graphic routines while those which lie within or pass through the window are scaled and fitted into the appropriate portion of the screen 4010A01 User 0 3 1 A VIEWABLE AREA IN USER UNITS THE VIRTUAL WINDOW 3 2 22 Examine graph as conceived in days and dollars and the method that will be used to display it on the screen Suppose the following raw data is to be plotted DAY PROFIT 1 5 30 2 26 3 42 4 38 5 40 6 50 7 54 8 48 9 40 10 52 A virtual window is defined in virtual space with the lower lefthand corner at days 20 dollars It is to extend horizontally on the x axis for 10 days and vertically on the Y axis for 40 dollars One way of defining rectangular window is to specify the lower lefthand corner and the horizontal and vertical dimensions When the data is displayed on the screen it is scaled in proportion to distances in the virtual window Since the screen is 1024 units wide it will be displayed 1 19 x 1024 102 units from left to right on the screen The point 1 30 is 1 4 of the distance bottom to top on the virtual window The screen is
6. addressable points Ho The 4015 Terminal and 4013 Terminal offer APL character set as well as the ASCII character set available on the 4014 and 4012 Terminals The notation 4014 15 refers to either the 4014 or the 4015 Terminal the notation 4012 13 refers to either the 4012 or 4013 Terminal The Terminal Control System does not support Special Point Plotting for the Enhanced Graphics Module Releases 3 0 to 3 3 of Terminal Control System may require modifications to BAKSP for 4006 1 operation 4010A01 User 5 1 MODIFYING THE Z AXIS OF THE 4014 15 TERMINAL Subroutine CZAXIS 5 2 5 2 Vectors on the 4014 or 4015 Terminal cannot only vary in X and amp position they also vary in brightness and storage properties This type of variation is called the Z axis capability The 4014 15 Terminal has three Z axis capabilities Normal Z Axis This is the same storage tube mode which is available on the 4010 Terminal The display is bright and sharp It is also stored on the screen until it is erased by a call to NEWPAG or ERASE Sections 4 4 and 4 12 Normal Z axis is the default mode and is used at all times unless a call to CZAXIS is made Defocused Z Axis This mode is in all respects similar to normal mode except that the display is results in broader lines and is slightly brighter Enabled Write Through Mode This mode allows a stored display and refreshed information to coexist on the Terminal sc
7. 01 User SCREEN GRAPHICS Integer Arguments ACTION ABSOLUTE RELATIVE MOVABS MOVREL DRWABS DRWREL PNTABS PNTREL Figure 2 7 2 5 3 VIRTUAL AND SCREEN GRAPHICS This part deals with the most important relationships in the Terminal Control System the translation of the User s data to a physical location on the screen With an under standing of this relationship between the data area and the Terminal screen the User can freely manipulate the display on the screen to reflect his need For example he can plot three different sets of data in the same screen display The first group of sections in this part 1 through 6 discusses the display of the User s data area This area may be conceived of as existing virtually within the computer and is analogous to the sheet of paper on which graphic data is usually drawn The data area is called virtual space The unit of measurement in virtual space is arbitrary and representative of any unit the User wishes from milligrams to light years The second group of sections in this part 7 and 8 discusses how virtual data may be displayed by screen graphics in designated portions of the Terminal screen the screen window Sections 9 and 10 deal specifically with the inter dependence of virtual space graphics and screen graphics Sections 11 and 12 discuss the drawing of dashed lines with both virtual space graphics and screen space graphics THE VIRTUAL WINDOW 3S
8. 1 4010A01 User REV A APR 1980 3 13 3 14 Four types of hardware dashed lines are available on the 4014 15 Terminal with Enhanced Graphic Module see TERM Section 5 1 The hardware dashed line specifications are fast and efficient and may be used by any TEKTRONIX Graphic Display Terminal If the terminal hardware is not capable of generating the hardware dash then the software will approximate the type according to the following key 1 a dotted line 2 dash dot line 3 short dashed line 4 long dashed line Example CALL DSHABS 200 700 2 The following example illustrates two software simulated hardware dash types 2 and 3 Function KIN Section 4 13 here to make relative draws 4010A01 User SAMPLE DRAWING A FLANGE CALL INITT 30 CALL MOVABS 100 50 CALL DRURELCO KIN GS CALL DRUREL CKINCO 52 0 CALL DRUREL CO KIN S CALL DRUREL C KIN CO 5 2 0 CALL MOURELCKIN CO SD KINC1 52D CALL DRUREL OKIN CG 0 2 0 CALL DRURELCO KIN CG 0 CALL DRURELC KINCGCG 0 2 0 CALL MOUREL KIN C2 00 KINCO9 2S C DRAW DASHED HIDDEN LINES CALL DSHRELC KIN C9 52 0 3 CALL MOURELCKIN CG 52 KIN C1 5 CALL DSHRELC KINCGCge 52 0 3 CALL MOURELCKIN C9 OG 0 KIN CO 5 C DRAW DASHED CENTER LINE CALL DSHRELC KINC3 52 0 2 CALL END wm s 4010A01 User SCREEN GRAPHICS VIRTUAL GRAPHICS Integer Arguments Real Arguments
9. DRAW A GRID SHOWING THE WINDOW CALL GRID PLOT THE DATA SIEFFING THE ANGLE FROM 10 100 DEGREES C WITH INCKEMENT OF 3 CALL MOVEACEUATAC 1 10 LO 10 1 30 DEGEEE 1 x3 10 CALL LASHSACFDATACI s DEGREFs 12 CALL 09 STOF EN L Figure 6 9 See note page 6 8 6 10 4010 01 User 7 INPUT OUTPUT ROUTINES The user s program may perform three types of Input Output with Terminal Control System subroutines graphic alpha numeric and Terminal peripheral control 11 the output from the package routines is funnelled through the basic subroutine TOUTST while all input comes in through sub routine TINSTR The graphic and control I 0 use these two subroutines directly as well as their single character counterparts TOUPT and TINPUT Alphanumeric I 0 can be accomplished through the more versatile set of routines described below The user should be aware that some of the following routines may be implementation dependent see Implementation Notes For output the Terminal Control System translates all characters to be sent to the Terminal into ASCII decimal equivalent ADE form and packs them into an output buffer When the buffer is full or the system or user calls sub routine TSEND this buffer is dumped translated into system dependent code and sent to the Terminal For input the Terminal Control System accepts system dependen code received from the Terminal translates it into 7 s
10. E 4 16 Measuring the Height of Lines F nsti n LINHGT 4 17 Tabs and Margins Xe a9 1e woe 4 17 1 Setting the Tab Table Subroutine TTBLSZ A 4 17 2 Tab Setting Subroutine SETTAB TE 4 17 3 Removing a Tab Subroutine RSTTAB 4 17 4 Horizontal Tab Subroutine TABHOR 4 17 5 Vertical Tab Subroutine TABVER 4 17 6 Setting the Margins Subroutine SETMRG 4 18 Level Checking Subroutine TCSLEV Routines Which Support the 4014 or 4015 Terminal 5 1 Identifying the 4014 15 Terminal Subroutine TERM 2 2 Modifying the Z axis of the 4014 15 Terminal Subroutine CZAXIS 5 3 Changing the Character Size on ehe 3014715 Ter inal Subroutine CHRSIZ 5 4 Measuring the Size of a Character Subroutine CSIZE 5493 Incremental Plotting Subroutine INCPLT E We 5 6 Check Terminal Modes Subroutine SEEMOD DJ Check Terminal Subroutine SEETRM Iransformations 5 2 s We esu WO OC E SC RN Sk 6 1 The Linear Transformation e 6 2 Ihe Logarithmic Transformation Subroutine LOGTRN e e L e e 6 3 The Polar Transformation P 6 4 Drawing Segments Using the Pola Teens OES Subroutine DRAWSA Subroutine DRAWSR 4010A01 User 6 5 Drawing Dashed Line Segments Using Polar Transformation Subroutine DASHSA Subroutine DASHSR e e e s 6 6 Using the Polar Transformation 7
11. ENCODED COMMUNICATION It will also be important to know how to communicate through the interface in non encoded mode Upon power up the terminal communicates in straight 2741 corre spondence without encoding However TCS output and input received from the Option 22 interface will default to the encoded message mode The user may exit from the encoded message input mode with a call to ANMODE and the Option 22 will respond in non encoded mode until a TCS input routine is called The user s call to FINITT at the close of a session also returns the system to non encoded mode The ability of Option 22 to respond in either mode is important when mixing your own FORTRAN with TCS I O B 2 0 4010A01 User I SUBROUTINE AND FUNCTION INDEX PAGE ANCHO ICHAR ANMODE BAKSP BELL CARTN CSIZE IHORZ IVERT 5 DASHA 1 13 DASHR X L 13 DCURSR ICHAR IX IY DRAWA X Y DRAWR X Y DRWABS IY DRWREL IY DSHABS 1 13 DSHREL 1 13 ERASE 11 FINITT IY 2 HDCOPY 11 IBAUD KCM RCM 13 RI 13 LINEF MOVABS IX IY MOVEA X Y MOVER X Y MOVREL IX IY NEWLIN NEWPAG PNTABS PNTREL POINTA POINTR RESTAT SVSTAT IX IY IX IY X Y X Y RARRAY RARRAY SWINDO TINPUT TOUTPT VCURSR VWINDO MINX LENX MINY LENY ICHAR ICHAR ICHAR X Y XMIN XRANGE YMIN
12. IARRAY the array of Am format characters to be output If IARRAY is shorter than NCHAR it is padded with blanks INPUT 7 7 TINSTR accepts input from the Terminal and puts it into an ADE array These character are in a form ready Subroutine 75 to be output by ANCHO Sections 4 3 or ANSTR Section 4 3 1 CALLING SEQUENCE CALL TINSTR LEN IARRAY Parameter Entered LEN the number of characters expected If fewer than LEN are received IARRAY is padded with blanks and if more than LEN are received the next call to TINSTR will input the excess characters Parameter Returned TARRAY the ADE array into which the input characters are placed Subroutine TINPUT 7 8 1117101 accepts one ADE character from the Terminal CALLING SEQUENCE CALL TINPUT ICHAR Parameter Returned ICHAR the ADE character received from the Terminal Since TINPUT cails TINSTR a null record entering only a carriage return at the Terminal becomes a blank while more than one character entered is stored for later access by any call to TINSTR 7 4 4010401 User Subroutine 7 7 9 AlIN accepts array of characters from the Terminal in integer Al FORTRAN format The array is in the correct format to be output by subroutine 1011 Section 7 5 CALLING SEQUENCE CALL ALIN NCHAR IARRAY Parameter Entered NCHAR the number of characters expected from the Terminal Since ALIN calls TINSTR Section 7 7 if fewer than NCHAR charac
13. Instructions Subroutine and Function Index Subject Index REV MAR 1978 O E 1 C05 C5 WN iS FS amp OQ Ui Un ON 7 10 7 10 7 11 1 INTRODUCTION LEVEL 1 version of the 4010 01 PLOT 10 Terminal Control System is the equivalent of Release 3 3 of the previous PLOT 10 Software with minor updates In order to allow the user to deal with many computer envi ronments both for timesharing and minicomputers TEKTRONIX has developed the Terminal Control System software package The package is a comprehensive set of subroutines which allows terminal independent graphic programming the user needs only to select the proper subroutines at load time The design is basically system and computer independent and enables the experienced programmer to work at the terminal level and also provides the facilities for the occasional user to operate easily at the conceptual level Ter minal Control System consists of those subroutines which support the TEKTRONIX 4006 1 4010 4012 13 and 4014 15 Computer Display Terminals Those who wish to enhance PLOT 10 Terminal Control System with 4662A01 PLOT 10 Utility Routine may then route output of TCS to the TEKTRONIX 4662 Inter active Digital Plotter RELEASE 3 AND EARLIER RELEASES 1 1 THIS MANUAL IS DESIGNED FOR ALL USERS OF RELEASES 3 0 THROUGH 3 3 AND LEVEL 1 OF THE TE
14. N Character Output A N Mode E A N String Output ASCII Input Bell x S ce ox Ges Buffer Types Changing Character Size Check the Terminal Mode Check the Terminal Status Circuit Drawing Clipping in Virtual Space Conversion of Centimeters to Sereen Units Conversion of Inches to Screen Units Cursor e 4 Dashed Lines 9 Dashed Line specie teat iene Drawing Absolute e Relative Dashed Lines Segmented Lines Polar Segmented Dashed Lines Hardcopying Horizontal Tab Identifying the Terminal Incremental Plotting Initialization Input Inberchansedbilibs ar Virtual Line Drawing Line Height Line Width x 5 Linear Transformation Logarithmic Transformation and Screen Graphics NS S UUU 1 ON m e db UA Ubi 9 NIN CO Margins 7 Measuring the Height of Linea D Measuring the Size of Characters Measuring the Width of Lines Miscellaneous Utility Routines Modifying the Z axis Output b e Polar Transformation Relative Drawing Removing a Tab z a Resca
15. See Section 3 12 SCREEN GRAPHICS VIRTUAL GRAPHICS Integer Arguments Real Arguments ACTION ABSOLUTE RELATIVE ABSOLUTE RELATIVE MOVE MOVABS MOVREL MOVEA MOVER DRAW DRWABS DRWREL DRAWA DRAWR POINT PNTABS PNTREL POINTA POINTR DASH DSHABS DSHREL DASHA DASHR SEGMENTED DRAW DRAWSA DRAWSR SEGMENTED DASH DASHSA DASHSR TERMINAL CONTROL SYSTEM DRAWING ROUTINES Figure 6 5 6 6 0 4010 01 User USING THE POLAR 6 6 Given the polar grid e of Figure 6 examine the TRANSFORMATION capabilities of Subroutine POLTRN the first strates a dashed line segment which connects radii with lengths between 90 100 at of three degrees they are displayed between example demon thirty different increments an ANGMIN of 109 and an ANGMAX of 1009 Radius suppression is 0 LIMEN SION 11 3E LATA 90 3 92 4 94 65 95 2 gt 96 1 96 9 098 2 7 994 1 99 4 amp 99 75 100 QP 29 5 99 98 5 0597 4 5 5 De 5596 Ws amp 94 0 93 0 gt 92 0 gt 93 0 97 0 94 3 91 0 92 8 CALL 30 C LEFINE THE TERMINAL WINDOW CALL 11 11 06 100 2010 100 60002 DEFINE THE DATA WINLOW WITH KALIUS FROM 10 TO 100 CALL 10 100 10 100 9532599 5e is C SPECIFY FOLAh WINDOW DISPLAYED BETWEEN 10 AND 100 DEGREES C WITH RADIUS SUPFEESSION OF ZERO CALL FOLTEN 10 100 0 C
16. UCURSRCIBR X Y P IS STRUCK 200 D IS STRUCK IF 186 EQ 68 GO TO 300 IS STRUCK IFCIBR EQ 77 GO 400 5 IS STRUCK IF 18 EQ 83 GO 0 GO TO 150 CALL POINTACX wv GO TO 150 CALL DRAURCX Y GO TO 150 CALL MOUEACX Y GO TO 150 CALL ANMODE CALL FINITT O 767 END Figure 4 6 4010A01 User TERMINAL STATUS 4 7 The Terminal Status Area is a set of variables which AREA are kept in a common block and represent the current state of the Terminal The Terminal Control System allows the user to save the current Terminal status and return to it at a later time Although it does not save the displayed data this facility does allow the user to interrupt his processing move to another location do other processing there or interact with the user and then return to his original processing Since the user allocates the save areas he may easily save more than one level of status and may restore any of his saved states at any time Subroutine SVSTAT 4 7 1 The current status of the Terminal may be saved by providing the status saving routine with a 60 word real array in which the Terminal Status Area may be stored WARNING The status of dashed lines cannot be saved used again reliably CALLING SEQUENCE CALL 5 5 RARRAY Parameter Entered RARRAY a 60 word real array Subroutine RESTAT 4 7 2 The Terminal may be restored to any prev
17. a 3 2 Viewable Area in User Units 323 Defining the Virtual Window Subroutine VWINDO 3 4 Subroutine DWINDO 5 5 3 5 Line Drawing in User Virtual Units Absolute Line Drawing 3 6 Relative Virtual Coordinate Subroutines 23 The Screen Window 3 7 1 Subroutine SWINDO 3 7 2 Subroutine TWINDO 3 8 Scaling and Stretching the Screen Windo 3 9 Clipping in Virtual Space 3 10 Imterchangeability of Virtual and ere EAE 3 11 Dashed Line Drawing 34 12 Dashed Line Specification Utility Routines 4 1 Alphanumeric Output Sr AS 4 2 Entering A N Mode Subroutine ANMODE 4 3 A N Character Output Subroutine ANCHO 4 3 1 A N String Output Subroutine ANSTR A N Character Handling T Q P 4 5 1 Subroutine DCURSR Using the Screen Cursor Subroutine SCURSR 6 Using the Virtual Cursor Subroutine 515 7 Terminal Status Area 4 7 1 Subroutine SVSTAT 4 7 2 Subroutine RESTAT x Rescaling a Graphic Output Subroutine RSCALE Rotating a Graphic Output Subroutine RROTAT 0 Subroutine RESET 1 Subroutine RECOVR E M Sen ok 12 Miscellaneous Utility Routines iW ewes DE He 3 Conversion of Inches to Screen Units Function KIN 3 4 14 Conversion of Centimeters Units Function of 4 15 Measuring the Width of Characters Function LINWDT
18. a display area This display area is called the screen window and it is defined by the subroutines SWINDO and TWINDO The two subroutines stand in the same relation to each other as do VWINDO and DWINDO see Sections 3 3 and 3 4 like all argumerts in screen terms the arguments of SWINDO and TWINDO are in integer format 32721 CALLING SEQUENCE CALL SWINDO MINX LENX MINY LENY Parameters Entered MINX the minimum horizontal screen coordinate LENX the horizontal extent of the rectangle MINY the minimum vertical screen coordinate LENY the vertical extent of the rectangle 3 752 CALLING SEQUENCE CALL TWINDO MINX MAXX MINY MAXY Parameters Entered MINX the minimum horizontal screen coordinate MAXX the maximum horizontal screen coordinate MINY the minimum vertical screen coordinate MAXY the maximum vertical screen coordinate 3 8 The points of the virtual window are scaled to fit into the screen window in the same manner as they previously fitted into the entire screen Consider again the data of Figure 3 2 The following program illustrates how the size and shape of the screen window can be manipulated by changing the dimensions of TWINDO Note that all of the virtual data is displayed in each case 4010A01 User 1 9 DEMONSTRATION OF SCALING AND STRETCHING CALL INITT 30 CALL DUINDO 0 10 20 60 DRAW THE SAME GRAPH IN FOUR TERMINAL UINDOUS CALL TUINDO 0 200 550 700 CALL GR
19. available on the 4014 Terminal this routine is especially helpful CALLING SEQUENCE CALL CSIZE IHORZ IVERT Parameters Returned IHORZ the horizontal character dimension including inter character space the horizontal distance between two periods IVERT the vertical distance as above including interline spacing The following example demonstrates a use of CSIZE and CHRSIZ Subroutine ANCHO Section 4 3 is used to output the alphanumeric character 4010A01 User 5 3 C LEMONSTRATION OF CHESIZ ANL CSIZE CALL 30 C USE SUEROUTINE TO LO wORK CALL 3 10849 CALL SUFI 400 1 CALL SUEI 500 400 2 CALL SUE COs Ms 3 CALL 5031 50A s 05 4 CALL FINITT 0 00 FN L U SUBROUTINE 10 CHANGE AND MEASURE CHARACTER SIZE GL ANL FOSITION GUTFUT SUbHUUTINE SUG IX IY ICHHSZ SET UF THE MESSAGE A RAY DIMEN 1550 5 55 LATA IMSG 67 72 55 7 E95 82 32 83 173 90 69 amp 30 735 R35 395 0 bs 385 BB 323 0 0 32 84 6 9 gt 75 gt 80 79 73 amp 183849635 44s 0 0 325 8 5 323 As 0 30 77 73 78 13 80 79 amp T3 7655 645 853 5 4ES LFAW A BOX FOR OUTFUT CALL MOVAES CALL 11 1 1 8 310 00 CALL LEWHEL 03100 CALL LKWKEL 31 5 0 CALL DbhWhEL 5 310 SET AND MEASURE CHARACTER SIZE IN 4096 SPACE CALL TERM 4696 CALL CHh5IZ CICHKSZ CALL CSIZE
20. from a 4012 to a 4014 Terminal 7 6 4010A01 User 2 For 4014 Terminals This format is for systems on which interline characters cannot be suppressed Thus interline characters follow each out put buffer transmission to the Terminal However a flag character ESC is sent where necessary and the 4014 hardware ignores the interline characters Graphi cursor input is possible all other respects Buffer Types 1 and 2 are identi cal including their behavior when non Terminal Control System output is mixed with Terminal Control System output 3 Used for all Terminals on systems where interline characters may be suppressed Graphic cursor input is possible With Buffer Type 3 no carriage returns or other interline characters are appended to Terminal Control System output by the computer All output begins at the position of the alphanumeric or graphic cursor on the Terminal screen This position agrees with the stored beam position even after ANMODE or TSEND is called However non Terminal Control System output causes a discrepancy between the stored and the actual beam position 4 Like Buffer Type 3 except that output is unbuffered i e each call to TOUTST results in direct output Example A program follows to illustrate the Buffer Type dependent results that occur when FORTRAN and Terminal Control System output are mixed NOTE Buffer types 1 and 2 are not available in the TSO version of the Termin
21. the current beam position The screen X coordinate which represents the rightmost limit of alphanumeric output Any attempt to write to the screen beyond the right margin using an A N output routine will cause a NEW LINE to be generated The portion of the Terminal on which output from the computer is displayed The set of points which constitutes the screen These points form a discrete two dimensional space and range from 0 0 to 1023 1023 inclusive the 4014 15 Terminal with Enhanced Graphic Module offers in addition a range from 0 0 to 4995 to 4095 inclusive SCREEN COORDINATES MUST ALWAYS BE INTEGERS The section of the screen into which the virtual window is scaled and translated The programs and routines used to operate a computer The electron beam which is directed by the output to draw characters and vectors on the Terminal Screen A cathode ray tube CRT which will maintain a display once written for an indefinite period until an erasure is made A console which accepts data from or sends data to a computer The term is used here with reference to a TEKTRONIX 4006 1 4010 4012 13 or 4014 15 Display Terminal 4010A01 User TERMINAL STATUS TERMINAL STATUS AREA TIME SHARING TRANSFORMATION USER COORDINATES VECTOR VIRTUAL COORDINATES VIRTUAL CURSOR VIRTUAL SPACE VIRTUAL WINDOW WRITE THROUGH MODE Z AXIS 4010A01 User The current state of the Terminal The set of common
22. 4 points or a grid of 4096 by 4096 points 123 The ideal that the Terminal Control System strives for is to make the Terminal as easy to use as a pencil and a piece of paper The detailed programming and general 1 0 handling are contained within the system as a result the basic Terminal capabilities are made available to the user in a natural and practical manner The Terminal Control System subroutines communicate with each other primarily through the Terminal Status Area a set of common variables which continuously represent the current state of the Terminal and maintain the data and flags necessary to generate output according to the user s level of need Terminal status cannot accurately be kept when output to the Terminal is generated by other means than through the appropriate Terminal Control System routine or whenever the user changes status locally e g uses the PAGE or RESET key The package gives many graphing conveniences to the user Bright and dark vectors line segments as well as points be displayed on the Terminal screen bright vector which can be seen on the screen is caused by one of the notation 4014 15 refers to the 4014 or the 4015 Terminal notation 4012 13 refers to either the 4012 or the 4013 Terminal Terminal Control System does not support special point plotting for the Enhanced Graphics Module 4010A01 User routines move routine will ca
23. 781 units high so the point is displayed 1 4 x 781 195 units from the bottom of the screen Figure 3 2 Every point on the virtual window is Similarly translated to a point on the screen 4010A01 User 0 60 10 60 1 4 of the virtual window hetght 0 20 10 20 je 1 10 of the virtual window width THE VIRTUAL WINDOW Figure 3 2 0 780 1023 780 The Screen pu 102 195 Sample Data Point 1 4 of the screen window hetght 1 10 of the screen width The Data of Figure 3 2 as Displayed on the Screen The code used to display Figure 3 2 may be seen on page 3 5 4010A01 User DEFINING THE 333 The Terminal Control System uses one of two VIRTUAL WINDOW subroutines to define the virtual window The first is Subroutine VWINDO VWINDO CALLING SEQUENCE CALL VWINDO XMIN XRANGE YMIN YRANGE Parameters Entered the minimum horizontal user coordinate XMIN XRANGE the horizontal extent of the rectangle YMIN the minimum vertical user coordinate YRANGE the vertical extent of the rectangle In the example of Figure 3 2 the calling sequence would be CALL VWINDO 0 10 20 40 Subroutine DWINDO 3 4 A second method of defining a virtual window may be employed by using the subroutine DWINDO DWINDO uses a calling sequence similar to that of VWINDO CALLING SEQUENCE CALL DWINDO XMIN XMAX YMIN YMAX Parameters Entered XMIN the minimum horizontal user co
24. A01 User C A GRID WITH LINES FROM 10 TO 100 INTEKVALS OF 10 SUBROUTINE GRID LMIN 10 DM AX 100 DMIN C DRAW GEIL LINES ALONG X AXIS LO 100 I 1 10 CALL MOVEACXs LIMIN CALL 100 10 10 C DRAW GEIL LINES ALONG Y AXIS DO 200 1 10 CALL MOVEACDIMINs Y CALL DLRAWSACDMAXKs Y 20g 10 KE TURN EN L TTT IT TT TTT r HERR 5 oa on Os 1111 888 088 81 888 88 8 PTT TTT Tit TT TT TTT TILLITILILI TITLTTT Tl a Figure 6 b 4010A01 User 0 6 3 THE LINEAR TRANSFORMATION Subroutine LINTRN THE LOGARITHMIC TRANSFORMATION Subroutine LOGTRN THE POLAR TRANSFORMATION Subroutine POLTRN 6 4 6 1 LINTRN returns user from either a logarithmic or a polar window and establishes linear scaling A linear window is assumed for all Terminal Control System routines until log or polar definitions are requested it is therefore not necessary to call LINTRN upon initializing a program CALLING SEQUENCE CALL LINTRN 6 2 LOGTRN defines either the X or Y axis or both as logarithmically scaled to fit the user s screen window The extent of the logarithmic definition is determined by the parameter KEY NOTE If the current data window limits are not positive for an axis defined as logarithmic that axis will be reset to linear to avoid an inv
25. AFIT WALL TUINDO 300 900 550 700 CALL GRAFIT CALL TWINDO 450 CALL GRAFIT CALL TWINDO 300 900 60 450 CALL GRAF IT MAKE HARDCOPY CALL HDCOPY CALL FINITT O 760 END SUBPOLITINE TO DRAW GRAPH WHICH FILLS TERMINAL WINDOW SUBROUTINE GRAFIT DIMENSION x 190 0 v 10 DATA X71 3 4 5 6 7 8 9 10 DATA V 30 26 42 38 40 50 54 40 52 CALL 210 DO 100 1 10 CALL DRAWACMCID YCID WALL mouEnco ao TALL DRAWACIO 20 gt CALL DRAWACIO 60 2 CALL DRAWACO GO CALL DRAWACO 20 RETURN END Figure 3 8 4010A01 User 3 9 CLIPPING IN 3 9 To see only a portion of the data the user can VIRTUAL SPACE change VWINDO DWINDO to include only the desired section When drawing is done in user virtual units that portion of the drawing is clipped which occurs outside the present virtual window Clipping occurs in all virtual graphics DIMENSION 10 10 271 8 3 4 5 6 7 8 9 1 390 42 3 8 40 50 54 48 40 52 Z CALL INITT 3O CALL SWINDO 400 300 200 400 CALL UUINDO 3 5 40 15 CALL MOVEACXK 1 YC1 DO 100 1 1 12 100 CALL DRAUARCXOIO gt CALL MOVABS 490 200 CALL DRUWABS 700 200 CALL DRWABS 700 600 CALL DRUWABS 400 600 CALL DRWABS 400 200 gt CALL 767 STOP END Figure 3 9 3 10 4010A01 User INTERCHANGEABILITY
26. ALOUT Subroutine AOUTST 4010A01 User CALLING SEQUENCE CALL ANCHO ICHAR Parameter Entered ICHAR the non control ADE character to be output 7 4 ANSTR accomplishes the same function as ANCHO except that it outputs an array of non control ADE characters ANSTR also places the Terminal in alphanumeric mode and updates the graphic beam position within the Terminal Control System For complete description of ANSTR see Sections 4 3 and 4 3 1 CALLING SEQUENCE CALL ANSTR NCHAR IARRAY Parameters entered NCHAR the number of characters to be output IARRAY the array containing the ASCII decimal integer equivalents for the characters to be output 7 5 10101 outputs an array of Al FORTRAN format characters This routine puts the Terminal in alphanumeric mode and updates the graphic beam position in the Terminal Control System CALLING SEQUENCE CALL 100 NCHAR IARRAY Parameters Entered NCHAR the length of IARRAY the number of characters to be output IARRAY the array of Al FORTRAN format characters to be output 7 6 AOUTST outputs an array of Am format characters In this format m represents the number of alphanumeric charac ters in one word This routine also updates the graphic beam position in the Terminal Control System CALLING SEQUENCE CALL AOUTST NCHAR IARRAY Parameters Entered NCHAR the number of characters to be output m times the length number of words of IARRAY
27. CHO above except that it allows the user to output an alphanumeric string instead of a single character The arguments of ANSTR are NCHAR the number of characters to be output and NADE the arrary of ASCII decimal equivalent integers which represents the string to be output CALLING SEQUENCE CALL ANSTR NCHAR NADE Parameters Entered NCHAR the number of characters to be output NADE An array containing the ASCII decimal integer equivalents for the characters to be output 4 4 A N CHARACTER HANDLING Generates a line feed and carriage return CALL NEWLIN Generates a line feed CALL LINEF This routine is also discussed in Section 7 4 4 2 4010A01 User Subroutine 7 Subroutine HOME Subroutine BAKSP Subroutine NEWPAG USING THE SCREEN CURSOR Subroutine SCURSR Subroutine DCURSR Not supported on the following Generates a carriage return CALL CARTN Moves the alphanumeric cursor to the upper left corner of the screen CALL HOME Generates a backspace CALL BAKSP Erases the Terminal screen and returns the alphanumeric cursor to the HOME position CALL NEWPAG 4 5 The graphic cursor may be used to specify screen coordinates directly Calling SCURSR will activate the graphic cursor allowing the user to position it The cursor position is transmitted to the computer when a keyboard character is struck This character along with the input position is returned as arguments by SCURS
28. CIHGRZsIVERI IMSGC 27 THOKZ 710 48 IMSGC S38 IHOFZ IHORZ 1 1 48 IMSGC4Q IVERIT 1024 8 IMSGC4S3 TUFKT IVERT 1 9 10 48 C SET ANT MEASURE CHARACTER SIZE IN 1024 SFACE CALL TEEM 3 1024 CALL CHRSIZ CICHESZ CALL CSIZE 111017 1 IMSGC19 ITHOKZ 16 468 IMSQC200zIHOERZ IHORhZ 10 10 48 10 48 IMSGC250zIVERT IVERI1 109 10 48 C FOSITION ANL OUT MESSAGE CELL MOVALS CALL CEG 200 LO 100 1 15 100 CALL ANCHO CIMSGCI CALL ANCHO CICHHSZ 48 I LNLNz 2 IVEELIT CALL OUEFL 16X IHObhZ I2LNUN LO 200 11 6 CELL ANCHO CIMSGCI CELL MOUVEEL C el THCEZs ISLNLN DO 310 I2375 55 310 CALL ANCHO CIMSGCI FE TURN ENL 5 4 4010A01 User CHARACTER SIZE 1 CHARACTER SIZE 2 IS 14 X 22 TEKPOINTS IS 13 21 TEKPOINTS 56 88 MINIPOINTS 51 83 MINIPOINTS CHARACTER SIZE 3 IS 69 X 13 TEKPOINTS CHARACTER SIZE 4 IS 08 X 12 TEKPOINTS 31 K 48 INIPOINTS 34 539 5 Figure 5 4 TEKPOINTS means addressable points in 1024 x 1024 space MINIPOINTS means addressable points in 4096 x 4096 space 4010A01 User 5 5 INCREMENTAL 2955 INCPLT is used to perform incremental plotting PLOTTING Each incremental plot character will move the beam one Subroutine INCPLT raster unit in the given direction user specified the direction whether it is to be visible or invisible and whether he wishes this p
29. Entered IBUFF indicates which buffer is to be examined 1 Input buffer 0 Output buffer Parameter Returned K 7 10 the number of characters left in the buffer indicated by IBUFF 4010A01 User Locating the Position of the Graphite Beam Subroutine SEELOC Dwmping the Output Buffer Subroutine TSEND 4010A01 User 7 11 4 SEELOC allows the user to locate on the screen the last position of the graphic beam if he has generated output outside the Terminal Control System e g a FORTRAN READ or WRITE or a call to TOUTST or TOUTPT Sections 7 1 and 7 2 respectively Thus he may update the beam position himself CALLING SEQUENCE CALL SEELOC IX IY Parameters Returned the screen X coordinate of the beam IY the screen Y coordinate of the beam 7 12 TSEND dumps the output buffer constructed by the Terminal Control System output routines Whenever the output buffer becomes full it is transmitted but TSEND may be called any time the user wishes to have all stored output displayed It is customary to call ANMODE as 1511110 may leave the Terminal in graphics mode The positioning on the Terminal screen of non Terminal Control System output such as a FORTRAN WRITE is dependent upon the way in which the software package is implemented on your computer See Section 7 11 1 for details If all output is through the Terminal Control System no such implementation dependencies exist CALLING SEQ
30. INITT automatically performs these functions It terminates the program and outputs the contents of the buffer Its arguments designate the position of the alphanumeric cursor upon program termination FINITT should be used depending on the computer system either in conjunction with or in place of FORTRAN STOP statement CALLING SEQUENCE CALL FINITT IX IY Parameters Entered IX the screen x coordinate of the position to which the beam is moved before program termination IY the screen y coordinate of the beam termination position 2 3 The three functions which do line drawing by referring to screen coordinate locations are MOVABS DRWABS and PNTABS ABS stands for absolute the drawing is called absolute because it is measured from a fixed point the origin 0 0 The arguments of these routines are always in integer format 2 4 The argument of MOVABS is the pair of coordinates of the point to which a move is desired Output starts at the stored current beam position This position is updated after every line draw or other output command In addition all drawings are buffered CALLING SEQUENCE CALL MOVABS IX IY Example CALL MOVABS 100 150 This call generates a move to 100 150 so that that drawing can proceed from there 0 4010A01 User Subroutine 85 245 DRWABS generates a bright vector from the current beam position to the coordinates given and updates the appropriate variables in the Termin
31. Input Output Routines Output Subroutine 101181 e Subroutine TOUTPT o s 55 5 low Subroutine Subroutine ANSTR i e s Subroutine ALOUT e e 4 e e Subroutine AOUTST e Input Subroutine TINSTR SENN NNN xO Ov UI FF N 7 11 1 721152 7 11 4 S ubroutine TINPUT x A4 w cx Subroutine ALIN 4 ow OE 09 oo Subroutine amp s x odo 5 8 Utility I O Routines Setting the Output Buffer Format Subroutine SETBUF Examine the Output Format Subroutine SEEBUF eve Examining the Useable Space in the Output or Input Buffer Function LEFTIO lt e s sos s owm s e Locating the Position of the Graphic Beam Subroutine SEELOC 7412 Dumping the Output Buffer Subroutine TSEND An Advanced Use of the Terminal Control System Circuit Drawing Terminal Control System Common Var Lables e e APPENDIX A m 11 II APPENDIX B INDEX DI ASCII CODE CHARTS 4010A01 User 1 55 OPTION 22 Users
32. OF VIRTUAL AND SCREEN GRAPHICS 4010A01 User 3 10 The user may locate a point in virtual space which is not within the limits of the virtual window He may draw to and from this point with no difficulty since the drawing will automatically be scaled and clipped by the window definition The same is not true of screen space which is defined entirely by the limits of the screen Therefore a transition from screen to virtual space can always be accomplished but the reverse is not true If a point in virtual space is designated which does not appear on the screen window a draw using screen coordinates will originate at the beam s last visible position within the screen window and not at the expected virtual point In addition the user must be aware of wrap around if he addresses a point which is off the screen Example The screen coordinates 1500 0 will cause wrap around e g A relative draw to the above coordinates will result in a vector on the X axis drawn 1500 1024 raster units from the current beam position See Figure 3 10 Sereen Window A line drawn in user virtual coordinates from potnt A to potnt B and back to potnt C A line draun in virtual coordinates from A to B and in sereen coordinates back to Bts point outside the sereen window but within the screen limits This draw reflects a user error Figure 3 10 3 12 4010A01 User DASHED LINE 2521 Dashed lines of nearly infinite va
33. OR IHORZ LTR 64 IHTAB 4X IUTAB 1 CALL ANCHO LTR 50 CONTINUE CALL NEWLINE 100 CONTINUE CALL FINITT 68 90 END f r 4 18 Screen Limits Figure 4 17 4010A01 User SETTING THE 4 17 6 This routine sets the left and right margins to MARGINS be used by Carriage Return CARTN HOME and NEWPAG see Secti 4 4 Subroutine SETMRG ser on CALLING SEQUENCE CALL SETMRG MLEFT MRIGHT Parameters Entered MLEFT the screen coordinate at which a line of alphanumeric output starts Its value should always be greater than and less than the maximum screen coordinate 1023 or 4095 or the right margin value MRIGHT the screen coordinate at which a line of A N output ends Its value should always be greater than MLEFT and less than the maximum screen coordinate 1023 or 4095 LEVEL CHECKING 4 18 This routine returns the last date of modification Subroutine TCSLEV for the Terminal Control System as well as the level number CALLING SEQUENCE CALL TCSLEV LEVEL Parameter Returned LEVEL a three element integer array where Level 1 the year of modification Level 2 the julian day Level 3 the level number 4010A01 User 4 19 5 ROUTINES WHICH SUPPORT THE 4014 or 4015 TERMINAL The following routines specifically support the 4014 Display Terminal and the 4014 15 with the Enhanced Graphics Module The Terminal Control System is compatible in its entirety with the 4015 15 Termi
34. R The Terminal Control System compensates for effects on the beam position caused by the graphic cursor CALLING SEQUENCE CALL SCURSR ICHAR IX IY Parameters Returned ICHAR a keyboard character bit ASCII right adjusted IX the screen x coordinate of the graphic cursor IY the screen y coordinate of the graphic cursor The following example Figure 4 5 demonstrates a use of the screen cursor ANMODE Section 4 2 is called to print out the coordinates of the screen cursor 4 5 1 DCURSR accomplishes the same function SCURSR above It s calling sequence and arguments are also the same 4006 1 Terminal To achieve a backspace substitute the CALL MOVREL LINWDT 1 9 This is done automatically for Terminal type 0 See subroutine TERM Not supported on the 4010A01 User 4006 1 Terminal 10 20 CALL 30 CALL SCURSR ICHAR IX IV CALL PNTABS IX IY CALL ANMODE WRITE 5 80 FORMAT 1 15 14 IF CICHAR NE 83 GO 10 CALL 9 0 END SAMPLE CURSOR SELECTION e 247 229 Figure 4 5 Representation of the Graphic Cursor a 709 229 1H is the PDP 10 processor s carriage return suppression format 4 4 See Implementation Notes 4010A01 User USING THE VIRTUAL CURSOR Subroutine VCURSR 4 6 It is often useful to be able to retrieve virtual rather than screen coo dinates with the graphic cursor The routi
35. RMINAL CONTROL SYSTEM ANY USER WHO OBTAINS THE PACKAGE AFTER THE DATE OF THIS MANUAL CAN PRESUME THAT HE HAS LEVEL 1 The notation 4014 15 refers to either the 4014 or the 4015 terminals the notation 4012 13 refers to either the 4012 or the 4013 terminal The 4015 and 4013 terminals are in all ways the same as their counterparts but offer in addition an APL character set 4010A01 User 1 1 THE TEKTRONIX TERMINALS TERMINAL CONTROL SYSTEM OVERVIEW 1 2 4006 4010 4012 13 and 4014 15 Computer Display Terminals are capable of displaying both alpha numeric characters and graphic data Once written the display remains visisble until it is erased and it is not necessary to continually refresh the information put up on the screen The 4012 is an upper and lower case ASCII Terminal The 4013 is an APL Terminal which also has the ASCII character set of the 4012 The 4014 and 4015 Terminals offer upper and lower case ASCII with the 4015 also having APL capabilities 4014 15 Terminals offer addition a write through capability in which both stored and refreshed information may be displayed The 4014 15 Terminals have a display area of 14 5 inches by 10 9 inches and the user has the option of four character sizes The 4014 15 Terminals with Enhanced Graphics Module offer hardware dashed lines and point plotting as well as incremental point plotting The user may also address a grid of 1024 by 102
36. Tektronix Inc P O Box 500 Beaverton Oregon MANUAL PART NO 070 2241 00 Tektronix COMMITTED TO EXCELLENCE Please Check for CHANGE INFORMATION at the Rear of this Manual PLOT 10 4010A01 A10 A11 A12 TERMINAL CONTROL SYSTEM USER S MANUAL 97077 First Printing FEB 1977 Revised NOV 1981 SUPPORT POLICY This software product is designated Support Category B as shown on the applicable software data sheet existing at the time of order Tektronix sole obligation shall be to correct defects non conformance of the software to the data sheet as described below without additional charge During the one 1 year period following delivery if the customer encounters a problem with the software which his diagnosis indicates is caused by a software defect the customer may submit a Software Performance Report SPR to Tektronix Tektronix will respond to problems reported in SPRs which are caused by defects in the current unaltered release of the software via the Maintenance Periodical for the software which reports code corrections temporary corrections generally useful emergency by pass and or no tice of the availability of corrected code Software updates if any released by Tektronix during the one 1 year period will be provided to the customer on Tektronix standard distribu tion media as specified in the applicable data sheet The customer will be charged only for the media on which such updates a
37. UENCE CALL TSEND 4010A01 User APPENDIX A T An Advanced Use of the Terminal Control System Circuit Drawing i A2 II Terminal Control System Common Variables A7 III Glossary 9 A 1 2 The combination of simple Terminal Control System routines can result in sophisticates usages The following example demonstrates how the graphic cursor can be used in combina tion with simple moves and draws to create electrical circuit drawings interactively The main program calls the virtual cursor The user can position it anywhere on the screen and by punch different Terminal keys move and draw or call subroutines which draw symbols at that position PROGRAM TO DRAW CIRCUITS INTERACTIVELY DATA IDRAW 68 IMOVES77 7 IERASE 69 IQUIT 817 IHCOPY 7e DATA IRESIS 82 ICAP 67 ITRANS 84 IGRND 717 CALL 0 C x SET TERMINAL SCREEN WINDOW CALL TWINDOCO 1800 0 7590 SET VIRTUAL SPACE DATA WINDOW CALL DWINDOC 500 0 375 CALL MOUuERCO 0 CALL FOR THE GRAPHIC CURSOR 100 105 CALL UCURSROKEY YTO IFCKEY NE IDRAWIGO TO 9 CALL DRAWACXTO YTO GO TO 100 110 IFrKE IMOVE IGO TO 120 CALL MOVERCXTO YTO GG TO 1060 120 IF MEY NE IERASE GO TO 130 CALL ERASE GO 105 130 IF KEY NE IQUIT GO TO 140 CALL 140 IF KEY
38. YRANGE ALIN NCHAR IARRAY AlOUT NCHAR IARRAY AINST NCHAR IARRAY ANSTR NCHAR IARRAY AOUTST CHRSIZ CZAXIS DASHSA NCHAR IARRAY ICHAR CODE X Y L DASHSR X Y L DRAWSA X Y DRAWSR X Y DWINDO XMIN XMAX YMIN YMAX INCPLT IONOFF IDIR NO LEFTIO IBUFF LINHGT NUMLIN LINTRN LINWDT NUMCHR LOGTRN KEY POLTRN ANGMIN ANGMAX RSPRS RECOVR RESET RROTAT DEG RSCALE FACTOR RSTTAB ITAB SCURSR ICHAR IX IY SEEBUF KFORM SEEDW XMIN XMAX YMIN YMAX SEELOC IX SEEMOD LINE IZAXIS MODE SEEREL RCOS RSIN SCALE SEETRM ISPEED ITERM ISIZE MAXSR SEETRN XFAC YFAC KEY SEETW MINX MAXX MINY MAXY SETBUF KFORM SETMRG MLEFT MRIGHT SETTAB ITAB ITBTBL TABHOR ITBTBL TABVER ITBTBL TCSLEV LEVEL TERM ITERM ISCAL TINSTR LEN IARRAY TOUTST NCHAR IARRAY TTBLSZ ITBLSZ TWINDO MINX MAXX MINY MAXY III l d d d gd ll l g f OO m OR C OO PPR Q o gt IFFI d d f l d oou NN N O a l 0 4010401 User 4010401 User SUBJECT INDEX Al Output x9 w lt ww AL Inp t 25 55 9 45 Output ne wy c ug Absolute Line Drawing Alphanumeric Output A N Character Handling A
39. a remote hardcopy unit The upper left corner screen location at which the first character of a page is normally printed Data sent from the Terminal to the computer Also data provided to a subroutine The portion of the Terminal which allows the user to enter A N data into the computer The screen X coordinate which represents the starting position of a line of alphanumeric output TCS was available in Releases 2 0 and 2 1 3 0 to 3 3 and Level 1 at the date of this printing The display command which causes a dark vector to be drawn The operation which causes the alphanumeric cursor to go to the left margin and down one line The operation which erases the screen and moves the alphanumeric cursor to the HOME position The coordinate represented by 0 0 The origin of the screen is located at the lower left corner Virtual space by definition has its origin at its center POINT RASTER UNIT REFRESH RELATIVE VECTOR RIGHT MARGIN SCREEN SCREEN COORDINATES SCREEN WINDOW SOFTWARE STORAGE BEAM STORAGE TUBE TERMINAL The display command which causes a point to be drawn The distance between two adjacent points on the screen the basic resolution element of the Terminal To renew a display If a Terminal i e a 4014 15 Terminal is in non store mode this display must be refreshed by the user s program to remain visible A means of describing an absolute vector which is drawn relative to
40. a screen position when the user wishes to work with virtual units IX KIN 1 4 CALL DRWREL IX 0 4 14 The function routine KCM transforms centimeters to screen units It provides the number of raster units in RC centimeters CALLING SEQUENCE Variable KCM RC Parameter Entered RC the number of centimeters Parameter Returned KCM the number of raster units in RC centimeters Example KCM is a means of determining a screen position when the user wishes to work with virtual units IX KCM 3 5 CALL DRWREL IX 0 MEASURING THE WIDTH OF CHARACTERS Funetton LINWDT MEASURING THE HEIGHT OF LINES Funetton LINHGT 4 14 4 15 LINWDT provides the width in raster units as an accurate measure of the horizontal size of a given number of adjacent characters The context is the current screen coordinate system 1024 addressable points vs 4096 addressable points CALLING SEQUENCE Variable LINWDT NUMCHR Parameter Entered NUMCHR the number of adjacent characters for which the width in raster units is desired Parameter Returned LINWDT the width in raster units of NUMCHR characters in the current character size 4 16 LINHGT provides in raster units the accurate measure of the height of a given number of lines CALLING SEQUENCE Variable LINHGT NUMLIN Parameter Entered NUMLIN the integer number of lines for which the height in raster units is desired Parameter R
41. al Control System 4010A01 User 7 7 7 8 100 20 DIMENSION ITHE 1 DATA ITHE 5HTHE CALL 30 CALL SETBUF 2 CALL TERM 3 1024 CALL CHRSIZ 1 CALL 5 0 450 CALL 081 85 100 450 CALL ANMODE WRITE 5 100 FORMAT 1X 9HTEKTRONIX CALL CHRSIZ 2 CALL ANMODE WRITE 5 200 1 15 4014 CALL CHRSIZ 3 CALL AOUTST 5 ITHE CALL 0 200 END Results with Buffer Types 1 and 2 THE TEKTRONIX 4014 Results with Buffer Types 3 and 4 TEKTRONIX THE 4014 On this computer system the FORTRAN WRITE carriage control character space 1X results in a line feed LF before FORTRAN output and a carriage return CR after output A carriage return and a line feed follow each Terminal Control System output On your computer system results of this program may differ from those shown due to different carriage control characters REV A MAR 1980 4010A01 User Detailed Explanation of the Example PROGRAM STEP PLACEMENT OF OUTPUT Buffer Type 1 and 2 Buffer Type 3 and 4 MOVABS 0 450 Interline characters The line feed DRWABS 100 450 following ANMODE and preceding TEKTRONIX ANMODE the LF preceding places it one line WRITE TEKTRONIX place below 100 450 two lines below 100 450 CHRSIZ 2 The software MOVE to The CR following ANMODE 100 450 and similar TEKTRONIX and the WRITE 4014 carriag
42. al Status Area CALLING SEQUENCE CALL DRWABS IX IY Example CALL MOVABS 100 50 CALL DRWABS 309 59 These calls cause a move to 100 50 and a subsequent line to be drawn from 100 59 to 300 59 Example PROGRAM TO DRAW A TRIANGLE CALL CALL MOVABS 100 190 CALL DRUABSC300 100 CALL DRWABS 200 187 CALL DRWABS 100 100 CALL FINITTCO 767 Figure 2 5 4010A01 User 2 3 Subroutine 75 2 6 PNTABS similarly moves to the coordinates given arguments and displays a point there CALLING SEQUENCE CALL PNTABS IX IY Example CALL INITT 30 CALL MOUABS i 300 200 CALL RRWABS 200 CALL DRUARS 500 480 CALL DRUABBS 300 400 CALL DRUABS 300 200 CALL PNTARS L400 200 CALL FINITT O 767 Figure 2 6 RELATIVE LINE 2 It is often easier to draw lines by indicating how DRAWING IN SCREEN many horizontal and vertical screen units to move relative COORDINATES to the last beam position Negative relative movement is to the left or down DRWREL MOVREL and PNTREL perform relative drawing in screen units They have the same syntax as DRWABS MOVABS and PNTABS Example Draw the same box as in figure 2 6 with relative vectors CALL CALL MOVABS 208 CALL DRURELC 200 0 CALL DRUREL Ce 200 MALL DRURPEL 300 0 CALL DRUREL O 200 TALL PNTREL 100 108 CALL FINITT O 767 2 4 REV MAR 1978 4010A01 User 4010
43. alid transformation CALLING SEQUENCE CALL LOGTRN KEY Parameter Entered KEY 1 x axis logarithmic y axis linear 2 x axis linear y axis logarithmic 3 x axis logarithmic y axis logarithmic 6 3 POLTRN allows the user to define his virtual graphic data to the Terminal Control System in polar coordinates Polar coordinates are specified by radius and angle The angle is represented in degrees counter clockwise from a horizontal line to the right of the origin The arguments of POLTRN control the shape of the screen window in which the virtual data is displayed The virtual window is scaled and transformed to fit into the screen area between REV A NOV 1980 4010A01 User DRAWING SEGMENTS USING THE POLAR TRANSFORMATION Subroutine DRAWSA Subroutine DRAWSR 4010A01 User arguments ANGMIN and ANGMAX The third argument RSUPRS is subtracted from the virtual radius If ANGMIN and ANGMAX do not equal the data window DWINDOO minimum and maximum YMIN and YMAX or if RSUPRS is not equal to zero a distortion of the virtual polar data will occur see Figures 6 7 and 6 8 The user can adapt this distortion to emphasize any features he wishes The polar origin is automatically located to obtain the largest possible display area within the user s screen window CALLING SEQUENCE CALL POLTRN ANGMIN ANGMAX RSUPRS Parameters Entered ANGMIN the minimum angle relative to the horizontal from which the display will app
44. ally check the tab setting for validity nor does it know whether the given tab table is horizontal or vertical CALLING SEQUENCE CALL SETTAB ITAB ITBTBL Parameters Entered ITAB tab setting in either X or Y coordinates ITBTBL the horizontal or vertical tab table Array Name SETTAB expects ITBTBL to be initialized to zero If the system does not do this automatically the user should do it with a DATA statement 4010A01 User REMOVING A TAB 4 17 3 To remove a tab selectively its position in Subroutine RSTTAB screen coordinates ITAB must be entered along with the proper tab table Non zero values which do not coorespond to a current tab setting are ignored the value of the tab position is 0 the entire tab table will be removed CALLING SEQUENCE CALL RSTTAB ITAB ITBTBL Parameters Entered ITAB the X or Y screen coordinate of the tab to be removed If the number is 0 all tabs in the tab table designated will be removed ITBTBL the horizontal or vertical tab table Array Name THE HORIZONTAL TAB 4 17 4 Calling the horizontal tab routine will cause the alphanumeric cursor to be moved with a constant Y value to Subroutine TABHOR the position specified by the first non zero entry in the horizontal tab table IHORZ which is greater than the current screen X coordinate of the cursor or beam position If the horizontal tab table is empty no action will occur If the tab table is not empty and
45. atement for KHORZT and KVERTT in his older programs using the tab routines A list of TCS common variables follows A 6 4010A01 User Name KBAUDR KBEAMX KBEAMY KDASHT KEYCON KFACTR KGNFLG KGRAFL KHOMEY KHORSZ KINLFT KKMODE KLINE KLMRGN KMAXSX KMAXSY KMINSX KMINSY KMOFLG KMOVEF KOTLFT KPAD2 KPCHAR KRMRGN KS IZEF KTBLSZ KTERM KUNIT KVERSZ KZAXIS TIMAGX TIMAGY TMAXVX TMAXVY TMINVX TMINVY TRCOSF TREALX TREALY TRFACX TRFACY TRPARI TRPAR6 TRSCAL TRSINF 4010A01 User VARIABLE NAMES IN ALPHABETICAL ORDER Use General Screen Graphics Screen Graphics Virtual Graphics Virtual Graphics Screen Graphics General General General A N 1 0 General Graphics A N Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Unused Screen Graphics 1 0 1 Screen Graphics A N A N A N General 1 0 A N General Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Virtual Graphics Description Characters per Second Beam X coordinate Beam Y coordinate Dash Specification Transformation Key Addressing Factor General Error Flag Graphic Level Flag Home Y Value Character Horizontal Size Characters Left in Input Buffer Mode Vector Type Left Margin Screen W
46. d ISPEED the baud rate in characters per second which has been set in INITT Section 2 1 ITERM the terminal type set in TERM Section 5 1 ICSIZE the character size set in CHRSIZ Section 5 3 MAXSR the maximum screen address set in TERM Section 5 1 4010A01 User 5 7 6 TRANSFORMATIONS The transformation routines in the Terminal Control System allow the user to define any of three coordinate systems linear logarithmic or polar The default transformation LINTRN is linear and it remains in effect until one of the transformations is called LINTRN returns the user to a linear window The logarithmic transformation LOGTRN allows the user to express data as logarithms with reference to either the X or Y axis or both The polar transformation POLTRN allows the user to define his coordinates as radius and degrees Each transformation occurs automatically before the drawing of a vector each remains in effect until another transforma tion routine is called or until the system is re initialized TRANSFORM Alter the coordinate system in which data is specified Example POLTRN radius angle 10 02 10 909 19 180 LINTRN X Y 10 0 0 10 10 0 Figure 6 produced by the following codes draws a grid by means of a user written subroutine GRID this gridwork is displayed in five different coordinate systems Grid a is linear Grids b c and d demonstrate the three different typ
47. e control LF preceding 4014 characters to the place 4014 beginning above place at the left margin two TEKTRONIX lines below 100 450 4014 on the same line CHRSIZ 3 The software MOVE to The CR following 4014 AOUTST 5 ITHE 100 450 places places THE on the FINITT THE there same line as 4014 but at the left margin NOTE The software assumes the cursor position to agree with the stored beam position No MOVE to the stored beam position occurs 4010A01 User Examine the 7 11 2 SEEBUF allows the user to examine the format of Output Format his output buffer see SETBUF Section 7 11 1 Subroutine SEEBUF CALLING SEQUENCE CALL SEEBUF JFORM Parameter Returned JFORM the output buffer format presently in use For 4010 or 4012 Terminal JFORM should return either 1 for systems which do not allow interline characters to be suppressed 3 or 4 for systems where interline charac ters may be suppressed For 4014 Terminal JFORM should return 2 3 or 4 Examining the 7 11 3 LEFTIO returns the number of characters remaining Useable Space in the Input buffer on the amount of space in characters tn the Input remaining in the Output buffer In cases where the amount or Output Buffer of input is variable for example the user may wish to Function LEFTIO i given input see how many characters need to be processed before a CALLING SEQUENCE K LEFTIO IBUFF Parameter
48. ear on the screen the maximum angle relative to the horizontal from which the display will appear on the screen RSUPRS the radius suppression factor 6 4 In order to draw the grid used in e of Figure 6 a call to Subroutine DRAWSA was used in the construction of GRID This call was substituted for a call to DRAWA Section 3 5 DRAWSA is analogous to DRAWA except that it enables the user to draw the curved line segments that are necessary when a polar transformation is in effect Subroutine DRAWSR is analogous to DRAWR Section 3 6 but again it is used for a polar transformation CALLING SEQUENCE CALL DRAWSA X Y Where X and Y are the virtual coordinates to which the line segments are drawn CALL DRAWSR X Y Where X and Y are the virtual coordinates relative to the current beam position REV A NOV 1980 6 5 DRAWING DASHED 6 5 DASHSA and DASHSR are analogous to Subroutines LINE SEGMENTS DASHA and DASHR Section 3 11 respectively They too USING THE POLAR are used for a polar transformation TRANSFORMATION CALLING SEQUENCES Subroutine DASHSA Subroutine DASHSR CALL DASHSA X Y L Where X and Y are the virtual coordinates to which the dashed line segment is to be drawn L is the dashed line type see Section 3 12 CALL DASHSR X Y L Where X and Y are the virtual coordinates to which the dashed line is drawn relative to the current beam position L is the dashed line type
49. ee above form and distributes it to the subroutine which called for it if necessary translating it again into alphanumeric format From the point of view of the user s program alphanumeric 1 0 may be accomplished more efficiently using direct methods such as FORTRAN READ and WRITE statements However output through the Terminal Control System updates the graphic beam position except where noted and allows control over the exact positioning of characters anywhere on the Terminal screen while input through the Terminal Control System provides correct formatting of data for later output or internal processing It is the user s responsibility to call ANMODE to dump the output buffer before doing FORTRAN 1 0 See RECOVR Section 4 11 Positioning of mixed FORTRAN and Terminal Control System output is implementation dependent See Section 7 11 1 for details ADE code is simply the integer representation of the ASCII character set The ADE characters are the numbers from to 127 with 48 representing 0 65 A 90 Z etc 4010A01 User 7 1 OUTPUT Subroutine TOUTST Subroutine TOUTPT Subroutine ANCHO Three formats are allowed for both input and output 1 ADE ASCII decimal equivalents 2 1 where 1 represents one word with one alphanumeric character in it 3 Am where Am represents one word with m alphanumeric characters in it is usually the number of alphanumeric characters that one word can conta
50. ementation Notes Interline characters particularly carriage return CR line feed LF and timing characters NUL or SYN need to be suppressed to make graphic input possible If the user s implementation doesn t suppress interline characters the user will need to call SETBUF as well as TERM when chaging from a 4919 or 4012 Terminal to 4014 Terminal CALLING SEQUENCE CALL SETBUF KFORM Parameter Entered KFORM the format of the output buffer after the following code 1 For 4010 and 4012 Terminals This format is for systems on which interline characters cannot be suppressed Characters necessary to generate a move back to the current beam position are stored at the beginning of each buffer Graphic cursor input is not possible With buffer Type 1 the move back to the current stored beam position happens before every Terminal Control System buffer output For example CALL CHRSIZ 2 CALL ANMODE moves the alphanumeric cursor to the location at which it was after the previous buffer was transmitted The subsequent system supplied interline characters may move the cursor to the left and down one line so any non Terminal Control System output that follows will begin there The following discussion is important for users who a Wish to mix Terminal Control System output with other types of output e g FORTRAN b Wish to run programs on different computer systems or c Wish to change Terminal types e g
51. ers are output 11 the outputting of the character advances the beam beyond the right margin setting a new line is automatically generated The input argument is assumed to be a bit ASCII non control character which is right adjusted within an integer word ANCHO does not check this input variable Any but the expected input will result in erroneous beam status information The positioning on the Terminal screen of non Terminal Control System output such as a FORTRAN WRITE is dependent upon the way in which the software package is implemented on your computer See Section 7 11 1 for details If all output is through the Terminal Control System no such implementation dependencies exist This routine is also discussed in Section 7 3 4010A01 User 4 1 A N STRING OUTPUT Subroutine ANSTR Subroutine NEWLIN Subroutine LINEF ANCHO updates the beam according to the character size set All character sizes are correctly updated 4096 46 space 1024 space however only the large size characters are correctly updated the other sizes are fractional screen units in width forcing the beam update to be an approximation to within 1 2 a screen unit of the true beam position CALLING SEQUENCE CALL ANCHO ICHAR Parameter Entered ICHAR An integer which represents a 7 bit ASCII character right adjusted NOT a control character For an example of ANCHO see Section 5 4 4 3 1 ANSTR functions in all respects like AN
52. es of logarithmic transformations respectively they are log x linear y linear x log y and log x log y Grid e demonstrates a call to the polar trans formation POLTRN 11 five grids use the same virtual data The difference between them is the result of the transformation through which they are viewed The 4010A01 PLOT 10 Terminal Control System System Manual explains how the user may write his own transformation routines by means of user hooks provided in internal routines of the package See page 55 for the coding of GRID 4010A01 User 6 1 6 2 72 CALL LEFINE CALL DEFINE CALL LrAw A CALL LEFINE CALL CALL LHRAW CALL LEP LN FE CALL CALL A CALL LEFINE CALL CALL RAW A CALL DEFINE CALL CALL A CALL CALL PNG 1 1 11 30 LATA WINLOW DWINLOC 1 Bes 100 10 100 09 SCREEN wINLOW IWINDOCOHs 250 50075600 GRID SHOWING LINEA TRANSFORMATION SCREEN WINDOW Cb TWIN DOC 050 As 250 LOGTRENCI GRIL SHOWING A 1080 GHIL OCLEEN WIMLOW iwINDOC750 1000 500 750 LOG TEN 2 GhID SHOWING GRIL SCEEEN WINDOW CL TWINDOC75 s 1000 Os 250 OG TAN 3 GhIL SHOWING A LOG X GRID SCREEN WINDOW CE TWINLOC 37 5 FES 250 5009 11 l es 100 Ce GEIL SHOWING FOLAF TEANSFOFMATION GhIL FINIT LINE6bk Y TRANSEFOEMATION A LINEAF X LOG Y TRANSFORMATION LOG Y TRANSFORMATION Os 0 4010
53. eturned LINHGT the height in raster units of NUMLIN lines in the current character size see CHRSIZ Figure 5 3 4010A01 User TABS AND MARGINS SETTING THE TAB TABLE Subroutine TTBLSZ TAB SETTING Subroutine SETTAB 4 17 Terminal Control System allows the user to set and reset tabs and margins to facilitate format layout The tab and margin settings are software generated and as such are useful only for A N output through Terminal Control System routines All tab and margin values are in screen coordinates Both horizontal and vertical tabs and left and right margins are available both horizontal and vertical tabs are limited to ten positions each 4 17 1 Tab settings for both horizontal and vertical tabs are kept in two ten word integer arrays The settings are ordered with ascending screen coordinates the first zero value indicating the end of the settings TTBLSZ sets up the size of the integer array The horizontal and vertical arrays must be equal in size CALLING SEQUENCE CALL TTBLSZ ITBLSZ Parameter Entered ITBLSZ the size of the tab table horizontal and vertical expressed as an integer from 1 to 10 4 17 2 The routine SETTAB takes a given tab setting in screen coordinates and inserts it into the given tab table If the tab is full the maximum setting will be lost in order that a lessor tab setting may be inserted Although duplicate tab settings are not inserted SETTAB does not gener
54. ful following output to the Terminal which is outside the realm of the Terminal Control System e g a FORTRAN WRITE CALLING SEQUENCE CALL RECOVR 4 12 user who is equipped with the TEKTRONIX hardcopy unit appropriate to his terminal may have the computer generate a hardcopy of the screen contents at any time This may be accomplished while in any mode and does not affect the Terminal Control System status The system will prevent generation of additional output until the hardcopy is completed CALLING SEQUENCE CALL HDCOPY The Terminal screen may be erased without changing the mode or beam position The Terminal Control System will prevent generation of additional output until the erase is completed CALLING SEQUENCE CALL ERASE An audible tone may be output at any time to call the user s attention to a particular event Often a sustained audible output which may be generated by a series of calls to the bell routine is used for an alarm The bell may be sounded while in any mode except GIN Graphic Input mode and has no affect on Terminal Status CALLING SEQUENCE CALL BELL Subroutine 7 Subroutine 77 Subroutine SEEREL Subrouttne SEETRN Returns the current values of the screen window CALLING SEQUENCE CALL SEETW MINX MAXX MINY MAXY Parameters Returned MINX the minimum horizontal screen coordinate MAXX the maximum horizontal screen coordinate MINY the minimum vertical screen coordina
55. he lefthand corner at 1 1 and a point in the middle 4010A01 User REV A MAR 1978 3 5 CALL INITTC30 CALL UUINDO CO 8 0 6 CALL MOUEAC1 1 CALL DRAUncGCLI 4 CALL DRAWAC 4 4 CALL DRAWAC4S 1 CALL DRAWACL 1 CALL 2 6 2 5 CALL 767 Figure 3 5 4010A01 User RELATIVE VIRTUAL COORDINATE SUBROUTINES 4010A01 User 3 6 MOVER DRAWR and POINTR draw straight lines move and display points respectively relative to the current beam position They are analogous to MOVREL DRWREL and PNTREL Section 2 7 except that they deal with user rather than screen units and clipping as described above may occur The following code will produce the same rectangle as that of Figure 3 5 CALL INITT 3O CALL uuINDO O 8 0 6 D CALL MOVEACI 1 CALL DRAUR 3 CALL DRA AURC3 0 D CALL DRAURCO 3 CALL DPRAURC 3 0 CALL POINTR C1 5 1 5 CALL 767 SCREEN GRAPHICS VIRTUAL GRAPHICS Integer Arguments Real Arguments ACTION ABSOLUTE RELATIVE MOVABS MOVREL ABSOLUTE RELATIVE MOVEA DRWABS DRWREL DRAWA DRAWR PNTABS PNTREL POINTA POINTR Figure 3 6 THE SCREEN WINDOW Subroutine SWINDO Subroutine TWINDO SCALING AND STRETCHING THE SCREEN WINDOW 257 So far to display drawing in virtual space the entire screen has been used But any rectangular portion of the screen can be used as
56. ication between Tektronix 4010 family computer display terminals and IBM computer systems or other systems with 2741 ports 4010 family terminals with Option 22 provide extended capabilities of graphics and faster alphanumerics through 2741 ports There are two important points to be aware of when operating with an Option 22 interface SET 0 BUFFER SIZE In order for the FORTRAN routines ADEIN and ADEOUT to transmit data through an Option 22 interface an encoding and decoding process is necessary The TCS user need not be concerned with this encoding and decoding process except for its effect on the buffer size TCS for IBM 360 370 has been changed to accomodate a buffer size of 89 charac ters This change was made because the encoding scheme for Option 22 results in some message overhead decreasing the effective buffer size from 132 charac ters to 89 Or to put it the other way an 89 character data message when encoded becomes a 132 character message Because of this characteristic the user must specifically set the input buffer size to 132 characters at the beginning of each session The following TSO CLIST is an example FREE ATTR IN FILE FTO5FO001 FTO6FO01 ATTRIBUTE IN BLKSIZE 132 LRECL 132 RECFM F ALLOCATE DATASET FILE FTO6F001 USING IN ALLOCATE DATASET FILE FTO5FO001 USING IN When the encoding process occurs an 89 character message will be expanded to 132 characters and the buffer will work properly NON
57. in Ped TOUTST outputs an array of ADE characters This routine does not update the graphic beam position within the Terminal Control System nor does it put the Terminal in alphanumeric mode TOUTST should be used only when outputting control characters which are not otherwise handled by the Terminal Control System CALLING SEQUENCE CALL TOUTST NCHAR IARRAY Parameters Entered NCHAR the length of IARRAY i e the number of characters to be output IARRAY the array containing ADE characters to be output 742 TOUTPT outputs a single ADE character This routine does not update the graphic beam position within the Terminal Control System nor does it put the Terminal into alphanumeric mode TOUTPT should be used only when outputting a control character which is not otherwise handled by the Terminal Control System CALLING SEQUENCE CALL TOUTPT ICHAR Parameter Entered ICHAR an ADE character to be output ANCHO outputs a single ADE character This routine places the Terminal in alphanumeric mode outputs the character and then updates the position of the beam For a complete description of ANCHO see Section 4 3 ADE code is simply the integer representation of the ASCII character set The ADE characters are the numbers from to 127 with 48 representing 0 65 A 90 7 etc An ASCII decimal equivalent chart may be found at the end of this manual 4010A01 User Subroutine ANSTR Subroutine
58. indow Maximum X Screen Window Maximum Y Screen Window Minimum X Screen Window Minimum Y Future Expansion Move Flag Characters Left in Output Buffer Padding Size Previous Plot Characters Right Margin Character Size Tab Table Size Type of Terminal Output Buffer Format Character Vertical Size Vector Intensity Imaginary Beam X Imaginery Beam Y Virtual Window Maximum X Virtual Window Maximum Y Virtual Window Minimum X Virtual Window Minimum Y Relative Vector Cosine Factor Real Beam X Real Beam Y Transformation Parameter Transformation Parameter Transformation Parameter Transformation Parameter Relative Vector Scale Factor Relative Vector Sine Factor ABSOLUTE VECTOR ADE ALPHANUMERIC CURSOR ALPHANUMERIC MODE A N ASCII BUFFERING CLIPPING COORDINATE CURSOR TERMINAL CONTROL SYSTEM Glossary A directed line segment from a given starting point to a given end point screen graphics the start point is defined by the beam position and the end point is an absolute screen coordinate In virtual graphics the start point is the virtual beam position and the end point is an absolute virtual coordinate ASCII decimal equivalent The integer representation of the ASCII character set See ASCII Code Chart A rectangular non stored moveable marker which indicates the next position at which a character will be displayed The Terminal mode in which ASCII output will be interpreted as cha
59. ine CALLING SEQUENCE CALL RROTAT DEG Parameter Entered DEG the angle of rotation relative to the position of the original display The following example draws a triangle then rescales it by a factor of 2 and rotates it by 90 to obtain the second triangle Those user s who have an old version of the TEKTRONIX Character Generation system Part No 062 1494 00 should delete the above routines from their Character Generation System software and use these subroutines in their place The current version of the 4010A05 Plot 10 Character Generation System does not contain RSCALE or RROTAT 4010A01 User 4 9 CALL INITT 30 CALL TRIANG 200 200 DOUBLE SCALE SIZE CALL RSCALE 2 CALL RROTAT 9Q ROTATED 90 DEGREES AND REDRAW CALL TRIANG 70Q 400 CALL TINPUTCK CALL FINITT 10 10 STOP END SUBROUTINE Y CALL MOUEAtCX CALL MOER 180 100 CALL DRAWUR 200 CALL DRAURc 100 800 2 CALL DRAWR 100 200 CALL POINTR 100 100 PE TURN END Figure 4 9 4010A01 User Subroutine RESET Subroutine RECOVR MISCELLANEOUS UTILITY ROUTINES Subroutine HDCOPY Subroutine ERASE Subroutine BELL 4010A01 User 4 10 This routine accomplishes the same function as INITT see Section 2 1 but it does not call for a new page CALLING SEQUENCE CALL RESET 4 11 RECOVR updates the Terminal hardware to match the Terminal Status Area variables It is use
60. iously saved state at any time by providing the status restoring routine with the 60 word real array in which the previous Terminal Status Area was stored CALLING SEQUENCE CALL RESTAT RARRAY Parameter Entered RARRAY the 60 word array containing previously stored terminal state 4010A01 User 4 7 CALL INITT 30 DIMENSION IBOX 8 ITIME S B GO TC 60 DATA IPOXxX 200 0 0 200 200 0 0 200 DATA 80 0 80 120 80 0 80 120 CALL MOVABS 402 300 C SAVE CURRENT TERMINAL STATUS CALL SuSTATCB CALL MOUABS 460 342 CALL SUSTAT T DO 102 N 1 7 2 CALL DRURELUITIME CN ITIMECN 1 2 CALL SUSTATCT C RESTORE STATUS CALL RESTAT B CALL DRURELLIBOXUN IBOX N 1 CALL SUSTAT B 100 CALL RESTAT UT C OPTIONAL HARDCOPY CALL HDCOPY CALL 767 STOP END Figure 4 7 0 4010 01 User RESCALING A 4 8 A graphic figure drawn with relative coordinates may GRAPHIC OUTPUT be rescaled by any virtual relative factor which is com patible with the virtual window definition that is a Subroutine RSCALE figure will be clipped if its dimensions exceed the limits of the virtual window CALLING SEQUENCE CALL RSCALE FACTOR Parameter Entered FACTOR the rescaling factor relative to the original size of the display ROTATING GRAPHIC 4 9 A graphic figure drawn with relative coordinates may OUTPUT be rotated at any angle relative to its original display position ne RROTAT Subrout
61. ling a Graphic Rotating a Graphic Output Scaling Screen Cursor 4 x e e Screen Graphics Screen Window e Setting the Tab TADS S eect Q Tab Setting X 4 9 W se Us TEKTRONIX Terminals Terminal Control System Overview Terminal Status Area Transformations e Utility Routines Utility I O Routines Virtual Cursor v e tni Virtual Graphics Virtual Window 4010A01 User CODE CHART ASCII 127 RUBOUT DEL LOW Y DD 19 92 16 e x s o 45 45 S R E que RS Ue A 9 A O I Y E Z O 2 A 2 e gt sz V 5 2 T 17 4 DC4 26 SINAK 21 SYN 22 ETB 23 ali BACK SPACE LINE FEED ETX EOT ENQ ACK BEL BELL S 33 35 36 37 38 8 39 42 y 43 47 CONTROL CR 13 RETURN
62. lot character to be output The user must have a 4014 or 4015 with the Enhanced Graphics Module and have specified a 4096 grid in his call to TERM Section 5 1 CALLING SEQUENCE CALL INCPLT IONOFF IDIR NO Parameters Entered IONOFF Beam off invisible 1 Beam on visible IDIR Direction Code NO the number of times the plot character is to be repeated Direction Code Example 7 5 4 Figure 5 5 CALL INITT 30 CALL TERM 3 4096 CALL 957 CALL INCPLT CALL INCPLT CALL INCPLT CALL INCPLT CALL INCPLT CALL INCPLT CALL INCPLT CALL FINITT END 5 6 Q 1 0 300 2 100 1 4 300 Q 1 100 1 6 300 0 0 100 1 989 300 8 0 4010A01 User CHECK TERMINAL 5 6 SEEMOD returns the value of common variables indicating MODES the status of the hardware dashed line type Z axis mode Subroutine SEEMOD and Terminal mode See Sections 3 12 and 5 2 CALLING SEQUENCE CALL SEEMOD LINE IZAXIS MODE Parameters Returned LINE the hardware line type in effect IZAXIS the hardware Z axis mode MODE the software mode alphanumeric 1 vector 2 point plot 23 incremental plot 4 dash CHECK TERMINAL 5 7 SEETRM returns the common variables which identify terminal speed type character size and the maximum Subroutine SEETRM range of addressable points 4096 or 1024 CALLING SEQUENCE CALL SEETRM ISPEED ITERM ISIZE MAXSR Parameters Returne
63. nal but the special routines allow the Terminal to utilize its extra capabilities The 4014 15 Enhanced Terminals have an addressable range of points from 0 through 4095 on each axis although its normal range is from 0 through 1023 points address character sequences used by both address ranges are compatible with all TEKTRONIX Graphic Display Terminals however when using the 4096 range of addressable points on the 4006 4010 4012 or 4013 Terminals the resolution is only to ever fourth address point That a 4014 or a 4015 is being used with or without the Enhanced Graphics Module is specified by the first parameter of Subroutine TERM Section 5 1 IDENTIFYING THE Sad In order to take advantage of the extra features of 4074 15 TERMINAL the TEKTRONIX 4014 15 Terminal the user must inform the Terminal Control System that he has the capability He does Subroutine TERM this by specifying his Terminal with Subroutine TERM If he does not use TERM before calling 4014 15 routines the Terminal Control System will treat his Terminal as a 4010 or a 4012 13 Terminal TERM needs to be called only once however after each initialization i e call to INITT CALLING SEQUENCE CALL TERM ITERM ISCAL Parameters Entered ITERM an integer from 0 to 3 where 0 indicates 4006 1 indicates 4010 4012 13 indicates 4014 15 indicates 4014 15 with Enhanced Graphics Module ISCAL either 1024 addressable points or 4096
64. ndow as those of example 2 Figure 6 7 demonstrates how the graph is displayed with a radius suppression factor of 9 from each of the thirty radii causing the data to be displayed between an ANGMIN of 109 and of 1009 and between a radius minimum of 0 and maximum of 10 30 THE TERMINAL WINDOW TWINDOC 900 100 100 6000 DATA WINDOW WITH KADIUS FROM 90 TO 100 DWINDOCO Oe s 100 5 10 100e SFECIFY A FOLAR WINDOW DISPLAYED BETWEEN 10 AND 100 DEGREES WITH RADIUS SUFFRESSION OF 90 CALL 01 110 10 100 0 GRID SHOWING THE WINDOW CALL GRID FLOT THE DATA STEPFING THE ANGLE FROM 10 TO 100 DEGREES WITH INCREMENT OF 3 CALL 0 116 1 1 10 10 1 1 30 DEGREE 10 1 3 CALL CALL STOF DASHSAChDATACIO DEGEEER 12 FINI 116 0 0 Figure 8 See note page 6 8 4010A01 User The fourth example uses the same information as example 3 In this case however the polar window is displayed between an ANGMIN of 09 and an ANGMAX of 180 Radius suppression is again 9f CALL 1111 300 C DEFINE THE TERMINAL WINDOW CALL TWINDOC 200 100 100 6000 DEFINE THE DATA WINLOW WITH RADIUS FROM 90 TO 06 CALL 0 90 100 10 gt 10 0 C SPECIFY A POLAR WINDOW DISFLAYEL BETWEEN ZERO ANL 180 LEGREES C WITH RADIUS SUFFRESSION OF 90 CALL 011141 0 1802590
65. ne VCURSR allows the user to enable the graphic cursor After the cursor has been positioned its screen coordinates may be transmitted to the computer by striking a keyboard character VCURSR transforms the input data into virtual coordinates according to the current window definition The virtual cursor does not affect the beam position The transformation which VCURSR effects assumes that all of the screen is a continuation of virtual space with the scale implied by the current window CALLING SEQUENCE CALL VCURSR ICHAR X Y Parameters Returned ICHAR a keyboard character bit ASCII right adjusted X the virtual x coordinate of the graphic cursor Y the virtual y coordinate of the graphic cursor The following example of VCURSR allows the user the capability of interactive line drawing When a character is struck a line segment is drawn or a move is made from the current beam position to the coordinates specified by the graphic cursor Not supported on the 4006 1 Terminal 4010A01 User 100 150 x C x 490 500 4 6 DIMENSION FRAME 8 DATA 1 0 1 1 0 1 0 0 CALL INITT 120 SPECIFY MINIMUMS AND EXTENTS OF WINDOWS CALL SWINDO 250 500 150 500 CALL VWINDOCO 1 0 1 FRAME THE SCREEN WINDOW CALL mOUERCO 90 DO 190 1 1 8 2 CALL DRAWACFRAME CI FRAME 1 1 gt SAMPLE THE CURSOR REPEATEDLY A A AN AN CALL ANMODE CALL
66. no entry exists which is greater than the current screen X coordinate of the cursor or beam position or if the first non zero entry greater than the screen X coordinate is also greater than the right margin setting a new line will be generated CALLING SEQUENCE CALL TABHOR ITBTBL Parameter Entered ITBTBL the name of the horizontal table 4 16 4010A01 User THE VERTICAL TAB 4 17 5 Vertical tabbing will cause the alphanumeric cursor to be moved with a constant X value to the position Subroutine TABVER specified by the last non zero entry in the vertical tab table which is less than the current Y coordinate of the cursor on beam position If no such entry exists then no action is taken CALLING SEQUENCE CALL TABVER ITBTBL Parameter Entered ITBTBL the name of the vertical tab table see SETTAB Section 4 17 2 The following example sets the tabs and resets them putting our characters with the help of subroutine ANCHO Section 4 3 4010A01 User Q 4 1 7 DIMENSION IHORZ 4 IVERT 4 30 CALL CALL CALL CALL CALL CALL CALL CALL CALL CALL TTBLSZ SETTAB SETTAB SETTAR SETTAR SETTAB SETTAB SETTAB SETTAB 4 20 IHORZ gt 50 IHORZ 350 IHORZ 400 IHORZ 750 IUERT 600 IUERT 500 IUERT 233 IUERT DO 100 IUTAB 1 4 IF CIVTAB CALL RSTTAB 250 IHORZ IF CIVTAB EQ 3 CALL SETTAB 150 IHORZ CALL TABVER IUERT DO 50 IHTAB 1 4 CALL TABH
67. ordinate XMAX the maximum horizontal user coordinate YMIN the minimum vertical user coordinate YMAX the maximum vertical user coordinate In the example of Figure 3 2 the calling sequence would be CALL DWINDO 0 10 20 60 3 4 0 4010401 User LINE DRAWING IN 3 5 MOVEA DRAWA and POINTA are analogous to MOVABS USER VIRTUAL DRWABS and PNTABS but they allow points outside the UNITS virtual window to be referenced Only those points or Absolute Line portions of bright vectors line segments which fall Drawing within the window boundaries however will be displayed this is known as clipping CALLING SEQUENCE CALL MOVEA X Y CALL DRAWA X Y CALL POINTA X Y Parameters Entered X the horizontal virtual real coordinate to which a bright or dark vector is drawn or at which a point is displayed Y the vertical virtual real coordinate to which a bright or dark vector is drawn or at which a point is displayed Using subroutine POINTA we will display the data of Figure 3 2 DIMENSION X 10 7C1 CALL CALL UUINDO CO 29 40 9 DATA x41 2 3 4 6 6 7 8 9 16 7 DATA 30 26 49 38 40 50 54 48 40 52 Z DO 100 1 10 100 CALL POINTACOGXCIO vYCIOD CALL FINITT 0 767 To work in user units on the screen one could set up a virtual window that measures eight by six units The following code will draw a three by three unit rectangle with t
68. racters to be displayed Abbreviation for alphanumeric American Standard Code for Information Interchange A standard code consisting of 7 elements for information interchange among data processing communications systems Storing input or output in an array in the Terminal Control System an array of 72 characters which is trans mitted or dumped when it is full or when a command to dump is given The modification of virtual graphics vectors so that the portion of those vectors which lies outside of the virtual window will not be displayed on the screen An ordered pair X Y of numbers uniquely represent a point either on the screen or in virtual space The ordered pair of numbers used in the normal coordinate system Cartesian coordinates represent the point according to its distance from the origin 0 0 along the X and Y axis respectively A moveable marker used as a reference 4010401 User DEFOCUS MODE DRAW ERASE GRAPHIC CURSOR HARDCOPY HOME POSITION INPUT KEYBOARD LEFT MARGIN LEVEL RELEASE MOVE NEW LINE NEW PAGE ORIGIN 4010A01 User Causes broader lines in the screen display for the 4014 15 Terminal The display command which causes a bright vector to appear The procedure of clearing the Terminal screen A cross hair cursor used to specify positional input Not available on the 4006 1 permanent copy of a display on the Terminal screen which is made by
69. re provided unless otherwise stated in the applica ble data sheet at Tektronix then current media prices In addition to the locations within the contiguous forty eight 48 United States and the District of Columbia this service is available in those areas where Tektronix has software support capability Copyright 1977 Tektronix Inc All rights reserved Ail software products including this document all associated tape cartridges and the programs they contain are the sole property of Tektronix Inc and may not be used outside the buyers organization The software products may not be copied or reproduced in any form without the express written permission of Tektronix Inc All copies and reproductions shall be the property of Tektronix and must bear this copyright notice and ownership statement in its entirety is a registered trademark of Tektronix Inc 4010 01 User TABLE OF CONTENTS Introduction 1 1 Release 3 0 and Earlier Releases 1 2 The TEKTRONIX Terminals 143 A Terminal Control System Overview Introductory Drawing 7 2 1 Initialization Subroutine INITT 242 Termination Subroutine FINITT 243 Absolute Line Drawing in Screen 2 4 Subroutine MOVABS i ode as 2 5 Subroutine DRWABS 2 6 Subroutine PNTABS b 252 Relative Line Drawing in Coordinates Virtual and Screen Graphics 3 1 Ihe Virtual Window b
70. reen For example the user may wish to display a graph yet add moving vectors to the original graph These vectors must be refreshed CALLING SEQUENCE CALL CZAXIS ICODE Parameter Entered ICODE an integer from f through 3 calls the Z axis mode normal Z axis l defocused Z axis 2 enabled write through mode 4010A01 User CHANGING THE 5 3 The 4014 15 Terminal has four different available CHARACTER SIZE character sizes which range from a very small 133 characters ON THE 4014 15 per line size to a very large 74 characters per line size TERMINAL CHRSIZ changes both the current character size and the variables associated with the change The default size is Subroutine CHRSIZ size 1 see below CALLING SEQUENCE CALL CHRSIZ ICHAR Parameter Entered ICHAR an integer which has one of the following values representing the size of the characters CHARACTER SIZE CHARACTERS LINE LINES PAGE 1 74 35 2 81 38 3 121 58 4 133 64 MEASURING THE SIZE 5 4 CSIZE provides the current character height and width OF A CHARACTER in raster units The characters are measured in the screen coordinate system in use either 1024 or 4096 This sub Subroutine CSIZE routine is useful for imposing alphanumeric characters on graphic displays primarily in the case of labeling It allows the user to see where his label ought to be placed to coincide with grid lines and tic marks When dealing with the multiple character sizes
71. riety be DRAWING drawn through the use of the Terminal Control System in both virtual and screen space The four basic dashed line subroutines are DSHABS DSHREL DASHA and DASHR These routines are analogous to DRWABS DRWREL Sections 2 5 and 2 7 DRAWA and DRAWR Sections 3 5 and 3 6 each dashed line subroutine however has a third integer format argument This third argument controls the type of dashed line displayed and it can take any integer value from 1 to the largest integer less than or equal to 9999999999 which your computer can accept CALLING SEQUENCES CALL DSHABS IX IY L CALL DSHREL IX IY L CALL DASHA X Y L CALL DASHR X Y L IX IY integer and X Y real are the coordinates the dashed line is drawn to and L is the dash type specification DASHED LINE 3412 Software dashed lines may be specified on any SPECIFICATIONS TEKTRONIX graphics display terminal with concatenation Parameter L of the following code numbers l 5 raster units visible 2 5 raster units invisible 3 10 raster units visible 4 10 raster units invisible 5 25 raster units visible 6 25 raster units invisible 7 50 raster units visible 8 50 raster units invisible Example CALL DSHABS 200 700 3454 The software also uses single digits to specify L l causes a move 0 causes a draw 9 alternate visible and invisible segments between data points Example CALL DSHABS 200 700
72. sor the small floating square which indicates the position where writing will occur moves to the HOME position in the upper left hand corner of the screen b The Terminal is set to alphanumeric mode c The margin values are set to the left and right screen extremes d The window is defined so that the portion of virtual space will be displayed which is equivalent in coordinates with the screen i e 275 763 in user coordinates is equivalent to 275 763 in screen coordinates See sections 3 0 through 3 2 for a description of virtual graphics INITT requires the rate of character transmission from the computer to the Terminal as an input parameter in order that appropriate delays may be produced during screen erasure and hardcopy generation This will prevent loss of data on remotely connected Terminals while they are not ready CALLING SEQUENCE CALL INITT IBAUD Parameter Entered IBAUD the transmission baud rate in characters per second 4010A01 User 2 1 TERMINATION Subroutine FINITT ABSOLUTE LINE DRAWING IN SCREEN COORDINATES Subroutine MOVABS 242 When terminating a program which uses the Terminal Control System it may be desirable to return the Terminal to alphanumeric mode and move the cursor to a point that will not interfere with any previous output All output to the Terminal is buffered or stored until the user calls a routine that dumps the buffer or until the buffer is full F
73. te MAXY the maximum vertical screen coordinate Returns the current values of the virtual window limits CALLING SEQUENCE CALL SEEDW XMIN XMAX YMIN YMAX Parameters Returned XMIN the minimum horizontal user coordinate the maximum horizontal user coordinate the minimum vertical user coordinate YMAX the maximum vertical user coordinate Returns the values of the common variables used by the relative virtual routines to scale and rotate vectors CALLING SEQUENCE CALL SEEREL RSCOS RSIN SCALE Parameters Returned RCOS the cosine of the rotation angle RSIN the sine of the rotation angle SCALE the multiplier used for scaling Returns the value of the common variables set by the window and transformation routines CALLING SEQUENCE CALL SEETRN XFAC YFAC KEY Parameters Returned XFAC the x scale factor YFAC the y scale factor KEY the transformation key l linear 2 log 3 polar REV A OCT 1980 4010A01 User CONVERSION OF INCHES TO SCREEN UNITS Funetton KIN CONVERSION OF CENTIMETERS TO SCREEN UNITS Funetton KCM 4010A01 User 4 13 The function routine KIN transforms inches to screen units It provides the number of raster units in RI inches CALLING SEQUENCE Variable KIN RI Parameter Entered RI the mumber of inches Parameter Returned KIN the number of raster units RI inches Example KIN is a means of determining
74. ters are received IARRAY is padded with blanks if more characters than NCHAR are received they are stored for later access by any call to TINSTR Parameter Returned TARRAY the array in which the Al format characters are placed Subroutine AINST 7 10 AINST accepts an array of characters from the Terminal in Am format This array can then be output by subroutine AOUTST Section 7 6 CALLING SEQUENCE CALL AINST NCHAR IARRAY Parameter Entered NCHAR the number of characters expected from the Terminal Since AINST calls TINSTR Section 7 7 if fewer than NCHAR characters are received IARRAY is padded with blanks if more than NCHAR are received they are stored for later access by any call to TINSTR Parameters Received IARRAY the array in which the Am format characters are placed 4010A01 User Utility 1 0 Routines Setting the Output Buffer Format Subroutine SETBUF Feit The following routines aid the user of the Terminal Control System in outputting or inputting data These routines however should be used carefully and in most cases will not need to be called 7 11 1 The user will find it necessary to control his output format after implementation of the package only when changing to a different Terminal type e g from a 4010 to a 4014 or when transferring to a different computer system The output format must be changed in these cases in order to avoid interline character problems see the Impl
75. use a dark vector the invisible equivalent of a bright vector a point routine causes the display of a bright spot or point Also included in the package are a choice of linear logarithmic or polar coordinate systems automatic scaling of graphic data and buffered input and output for faster more efficient character handling The following section deals with some of the subroutines which output bright and dark vectors draws and moves respectively and points using Terminal screen coordinates The values of these coordinates should be from f to 1023 unless a 4014 15 Terminal with the Enhanced Graphic Module is used in which case addressing from through 4095 points is available The Y axis coordinates should not exceed 780 or 3120 for the Enhanced Graphics Module to remain visible on the screen 0 780 1023 780 Screen Margins 512 5 512 390 lt Screen 390 0 0 __ 5 5 19402350 Screen Coordinates Figure 1 3 Screen Margins indicate the initial settings for alphanumeric line limits on the Terminal Screen 4010A01 User 2 INTRODUCTORY DRAWING INITIALIZATION 2 54 Initialization of the Terminal and the Terminal Subroutine EN TTD Status Area must be accomplished as the first step in the use of Terminal Control System routines This may be done by calling the initializing routine INITT When INITT is called the following events occur a The screen is erased and the cur
76. variables which represent the current Terminal status The use of a computer to serve a number of individuals in an essentially simultaneous fashion Communication with a timesharing computer is usually through an interactive terminal The relationship between the virtual and screen windows It may include a scaling a translation and or a change of coordinate systems A coordinate system in which the units of measurement are defined by the user See virtual Coordinates A line segment A vector may be either bright visible or dark invisible The former is generated by a DRAW routine the latter by a MOVE routine The set of points which constitute virtual space Allows the user to locate coordinates in virtual space with the graphic cursor A user defined data structured display area which is Terminal independent The portion of virtual space which is displayed in the Terminal area defined by the screen window Only that portion of virtual space which is contained in the virtual window will be displayed Allows refreshed information to be displayed along with stored information on the 4014 15 Terminal Allows variations in the storage and brightness bilities on the 4014 15 Terminal 4010 01 User APPENDIX OPTION 22 USERS INSTRUCTIONS Option 22 supported TCS only with implementation for 360 370 is the tronix 2741 Correspondence Code Interface Its purpose is to allow commun
Download Pdf Manuals
Related Search
Related Contents
14ページ:お知らせ[PDFファイル/2326KB] User Manual WS 19 Copyright © All rights reserved.
Failed to retrieve file