home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / ncsatlnt / tel23doc.zip / CHAP.6 < prev    next >
Text File  |  1991-07-01  |  8KB  |  243 lines

  1. 6.1    NCSA Telnet
  2.  
  3.  
  4. Tektronix 4014 Graphics    6.1
  5.  
  6.  
  7. National Center for Supercomputing Applications
  8.  
  9. June 1991
  10.  
  11.  
  12.                                                                 
  13.  
  14.  
  15.  
  16.  
  17.  
  18. 6.1    NCSA Telnet
  19.  
  20. Tektronix 4014 Graphics    6.1
  21.  
  22. National Center for Supercomputing Applications
  23.  
  24. June 1991
  25.  
  26.  
  27.  
  28. 6/30/91
  29.  
  30.  
  31.  
  32.  
  33. Chapter 6    Tektronix 4014 Graphics
  34.  
  35.  
  36.  
  37. Chapter Overview
  38. Emulating a Tektronix 4014 Graphics Terminal
  39. Initializing A Plotter
  40. Setting the Configuration File 
  41. Switching to and from Graphics Mode
  42. Graphics Mode
  43. Text Mode
  44. Using the Graphics Menu (ALT-G)
  45. Writing Graphics Files to Disk
  46. Renaming Graphics Output Files
  47. Setting the Viewing Region (Zoom Factor)
  48. Redrawing Last Image
  49. Plotting a Stored File
  50.  
  51. Chapter Overview
  52.  
  53. NCSA Telnet can emulate the Tektronix 4014 graphics terminal. 
  54. This emulation includes text modes, Tek 4014 text sizing, zoom, 
  55. pan, and multiple output devices. It supports CGA, EGA, Hercules, 
  56. and the Number Nine Revolution 512 x 8 video systems, with the 
  57. capability to write out images in PostScript, HPGL, or Tek 
  58. drawing commands. The use of Tektronix graphics with NCSA 
  59. Telnet depends upon host programs that can produce graphic 
  60. images. When these programs run and produce Tektronix 4014 
  61. graphics commands, NCSA Telnet automatically switches into 
  62. graphics mode and does the drawing. 
  63.  
  64. This chapter describes steps in preparing to emulate the Tektronix 
  65. 4014 and how to use the Graphics menu.
  66.  
  67.  
  68. Emulating a Tektronix 4014 Graphics Terminal
  69.  
  70. Initializing a Plotter
  71. If you will be plotting directly to a plotter, the communications port 
  72. for the plotter must be initialized before you run NCSA Telnet. To 
  73. do so, use the DOS mode command. See the DOS manual and the 
  74. plotter manual for examples.
  75.  
  76.  
  77. Setting the Configuration 
  78. File 
  79. You'll use NCSA Telnet's configuration file to install the 
  80. hardware and software configuration for Tektronix graphics. 
  81. There are several settings you should insert in the configuration 
  82. file, detailed in Chapter 7, "Installation and Configuration," 
  83. before you use Tektronix emulation.
  84.  
  85. 1.    Include tek=yes in the configuration file to enable graphics 
  86. operation.
  87.  
  88. 2.    Specify the video type with the video parameter in the 
  89. configuration file. This is the only step required for selecting 
  90. the video display because all of the screen drivers are included 
  91. in NCSA Telnet.
  92.  
  93. 3.    Install specific filenames to be used when writing each of the 
  94. three different kinds of drawing commands. The hpfile 
  95. parameter selects the file to receive HPGL commands, the 
  96. psfile option selects the file to receive PostScript drawing 
  97. commands, and the tekfile option selects the file to receive 
  98. Tektronix drawing commands. If you do not make any settings 
  99. here, the default files are hp.out, ps.out, and tek.out.
  100.  
  101. If you want HPGL output to go directly to a plotter that is connected 
  102. to COM1 rather than to a disk file:
  103.  
  104. 4.    Add hpfile=com1 to your configuration file. Note that you use 
  105. COM1 without a colon.
  106.  
  107.  
  108. Switching to and from Graphics Mode
  109.  
  110. Graphics Mode
  111. When host programs produce Tektronix 4014 graphics commands,  
  112. NCSA Telnet automatically switches into graphics mode and does 
  113. the drawing.  The exact command sequence which causes the 
  114. switch to graphics mode is the Tektronix clear screen command, 
  115. ESC-FF, which is sometimes written as ESC-CTRL-L. A copy of 
  116. your text screen is saved while you are in graphics mode.
  117.  
  118. The second way to enter graphics mode is to press CTRL-HOME. 
  119. This key switches from text mode to graphics mode and clears the 
  120. graphics screen. Host programs that produce Tektronix 4014 
  121. graphics commands cause the screen to automatically go to 
  122. graphics mode, so you will not usually need to use CTRL-HOME to 
  123. switch to graphics manually.
  124.  
  125. The third method of starting graphics mode is to re-display the last 
  126. graphics image. The re-display option is from the Graphics menu, 
  127. described later in this chapter. At the completion of the re-display 
  128. command, the screen remains in graphics mode.
  129.  
  130.  
  131. Text Mode
  132. To return to text mode, press HOME. When you are in graphics 
  133. mode, HOME will set your display back to text mode and redraw 
  134. the text screen which was visible before the graphics mode began. 
  135. No host command exists which automatically returns to text mode. 
  136. When you are in text mode, HOME has a different function. 
  137.  
  138. Using the Graphics Menu (ALT-G)
  139.  
  140. You display the Graphics menu by pressing ALT-G. Figure 6.1 
  141. shows the Graphics menu, as it appears with the default filenames. 
  142. You can change the fields in bold.
  143.  
  144. Figure 6.1    Graphics Menu
  145. ALT-G                           Graphics menu
  146. <            Press the appropriate function key or ESC to 
  147. resume        >
  148.  
  149.    F1 - Write postscript to a file called: ps.out
  150.    F2 - Change postscript output file name
  151.  
  152.    F3 - Write HPGL code to a file called: hp.out
  153.    F4 - Change HPGL output file name
  154.  
  155.    F5 - Write Tektronix 4014 codes to a file called: tek.out
  156.    F6 - Change Tektronix output file name
  157.  
  158.         View region is currently: 0,0,4095,3119
  159.    F7 - Set a new view region (Zoom, Pan)
  160.    RETURN - draw picture on screen in current zoom factor
  161.  
  162.    Enter choice:
  163.  
  164.  
  165. From this menu, you press the appropriate function key, or 
  166. RETURN to redraw the most recently displayed graphics picture.
  167.  
  168.  
  169. Writing Graphics Files to 
  170. Disk
  171. To write out graphics images, use the Graphics menu. First, you 
  172. should display the image on the screen using host software that 
  173. generates Tektronix images. NCSA Telnet always keeps the last 
  174. graphic image in memory. Select one of the options which writes 
  175. this image to disk. The program writes images using the current 
  176. view region. 
  177.  
  178. If you select Tektronix 4014 format, NCSA Telnet writes the image 
  179. directly to disk and then returns you to your current session. After 
  180. selecting the HPGL or the PostScript option from the Graphics 
  181. menu, you are returned to your session while the file is written to 
  182. disk in the background. After this image has been completely 
  183. copied from memory to disk, a message on the console screen tells 
  184. you that the process has completed.
  185.  
  186.  
  187. Renaming Graphics Output 
  188. Files
  189. If you did not set up alternate files to use in the configuration file 
  190. and you do not want to use the default filenames hp.out, ps.out, or 
  191. tek.out, you can change the names before or after writing the file. 
  192. Use the Graphics menu options to change one of the current file 
  193. names before writing the image to disk. If you want a name 
  194. changed after writing out the file, use ALT-E to escape to DOS, then 
  195. use the DOS rename command. Use exit to leave DOS and return 
  196. to NCSA Telnet.
  197.  
  198. A special feature allows you to append the current image to an 
  199. existing disk file instead of overwriting. Enter any of the three file 
  200. names as you would normally, adding a plus (+) to the beginning 
  201. of the name.  NCSA Telnet takes the plus (+) to indicate that you 
  202. want to open that file for "append", adding another image to the 
  203. file. A filename which does not begin with a plus (+), causes NCSA 
  204. Telnet to overwrite the file when saving each image.
  205.  
  206.  
  207. Setting the Viewing Region 
  208. (Zoom Factor)
  209. Another Graphics menu choice lets you set the viewing region, or 
  210. zoom factor. Any portion of the image can be enlarged and made to 
  211. fill the screen. Tektronix drawing commands are resolved to a 
  212. 4096 x 3120 pixel resolution. Values start with 0,0 in the lower left, 
  213. and go to 4095, 3119 in the upper right. 
  214.  
  215. The default view region for NCSA Telnet is (0, 0, 4095, 3119), which 
  216. is the full image. Figure 6.1 has examples of possible viewing 
  217. regions that you can use.
  218.  
  219. Figure 6.2    Sample Viewing 
  220. Regions
  221.                                               
  222.  
  223.  
  224. Redrawing Last Image
  225. Use the Graphics menu option, Redraw Last Image, is used when 
  226. you want to review the image that is currently in memory. This 
  227. option always zooms and enlarges the image according to the view 
  228. region that is visible. The selected view region always fills the 
  229. screen so you can see more detail.
  230.  
  231. This command leaves you in graphics mode, so press HOME if you 
  232. want to return to text mode.
  233.  
  234.  
  235. Plotting a Stored File
  236.  
  237. If you have used the Graphics menu to store a file of HPGL drawing 
  238. commands, the DOS copy command can send those commands to 
  239. an attached plotter (which is connected to COM1 in this example).
  240.  
  241. C:> copy filename.out com1 
  242.  
  243.