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

  1. 2.1    NCSA Telnet
  2.  
  3.  
  4. Introduction to Managing Sessions    2.1
  5.  
  6.  
  7. National Center for Supercomputing Applications
  8.  
  9.  
  10. June 1991
  11.  
  12.                                                                 
  13.  
  14.  
  15.  
  16.  
  17.  
  18. 2.1    NCSA Telnet
  19.  
  20. Introduction to Managing Sessions    2.1
  21.  
  22. National Center for Supercomputing Applications
  23.  
  24. June 1991
  25.  
  26.  
  27.  
  28.  
  29. 6/30/91
  30.  
  31.  
  32.  
  33.  
  34. Chapter 2    Introduction to Managing Sessions
  35.  
  36.  
  37.  
  38. Chapter Overview
  39. Keyboard Usage
  40. Multiple Sessions
  41. Opening Multiple Initial Sessions
  42. Using the Status Line
  43. Opening Additional Sessions
  44. Indicating the Host
  45. Estimating Host Response Time
  46. Using Scrollback Mode
  47. Using the Cut and Paste Functions
  48. Switching Between Sessions (ALT-N)
  49. Displaying Console Messages (ALT-M)
  50. Exiting the Present Connection (ALT-X)
  51. Capture File Operations
  52. Designating a Capture File
  53. Using PRN
  54. Using One Capture at a Time
  55.  
  56. Chapter Overview
  57.  
  58. This chapter introduces NCSA Telnet's capability for multiple 
  59. connections with one or more hosts. The chapter describes 
  60. standard VT100 key emulation, keys for some common EDT 
  61. operations, how to work with multiple sessions, and operations 
  62. with the capture file.
  63.  
  64.  
  65. Keyboard Usage
  66.  
  67. When NCSA Telnet is running, the PC appears to the host as a 
  68. VT100 terminal. For keys that the PC keyboard and the VT100 
  69. keyboard have in common, NCSA Telnet transmits the keystrokes 
  70. unmodified. However, the VT100 keyboard has some keys that the 
  71. PC keyboard does not have, and also treats other PC board keys 
  72. differently. Furthermore, many VT100 keys have special 
  73. meanings when they are transferred to the host. To provide full 
  74. VT100 functionality, telnet programmers have designated some 
  75. PC keys to emulate the operation of VT100 keys. 
  76.  
  77. Table 2.1 lists the PC keys to use for VT100 terminal emulation. 
  78.  
  79. Table 2.1    Keys Used for 
  80. VT100 Terminal 
  81. Emulation
  82. To Send the VT100 Code    Press PC Key(s)
  83.  
  84. RETURN    ENTER
  85.  
  86. DELETE*    BACKSPACE*
  87.  
  88. BACKSPACE*    CTRL-
  89.     BACKSPACE*
  90.  
  91. LINE FEED    CTRL-ENTER
  92.  
  93. Keypad ENTER     Keypad ENTER 
  94. (not identical to RETURN)
  95.  
  96. Keypad . (decimal point)    Keypad .
  97.  
  98. Keypad - (hyphen)    Keypad -
  99.  
  100. Keypad , (comma)    Keypad ,
  101.  
  102. Keypad 0 to 9    Keypad 0 to 9
  103.  
  104. ¡, », ¼, «    CTRL-Keypad ¡, », ¼, «
  105.  
  106. PF1 to PF4    F1 to F4
  107.  
  108. NOTE:  "Keypad" refers to the numbers and characters on the 
  109. right-hand side of your keyboard.
  110.  
  111.  
  112. For Extended Keyboards:
  113. ¡, », ¼, «    Grey ¡, », ¼, «
  114.  
  115. *See Chapter 3, "More About Managing Sessions," and Chapter 7, 
  116. "Installation and Configuration," for information on how to 
  117. switch the designations of these keys.
  118.  
  119.  
  120. Multiple Sessions
  121.  
  122. Opening Multiple Initial 
  123. Sessions
  124. When you first run NCSA Telnet, you can start up multiple 
  125. sessions with a single command.
  126.  
  127. C:\> telnet machinename [machinename ...]
  128.  
  129. where machinename is the name of the machine you want to 
  130. connect to. For example, if you enter telnet yoyodyne you would 
  131. be connecting to the machine named yoyodyne.
  132.  
  133. To start up multiple sessions, enter the additional machinenames 
  134. on the same line. Even if you do not choose multiple sessions when 
  135. you first run NCSA Telnet, you can add sessions later. 
  136.  
  137.  
  138. Using the Status Line
  139. Because only 24 lines are needed for VT100 terminal emulation, 
  140. line 25 on your PC screen is used to indicate the connection status 
  141. of your terminal sessions. For each host you are connected to, a 
  142. session name appears in reverse video. The name in the lower-left 
  143. corner of the screen is the current session. Beside each name is a 
  144. status box that indicates various attributes of a session:
  145.  
  146. gray    Connection is established, waiting
  147. small box    Active connection, always in lower left corner
  148. *    Connection pending, trying to connect to host
  149. / or \    Text has been written to this invisible session
  150.  
  151. Flags appear in the lower-right corner if you are either in the 
  152. Scrollback mode or have a capture file open. If you are 
  153. transferring files, the FTP status appears in the lower-right corner 
  154. as well.  Finally, a clock appears in the lower-right corner if you 
  155. enable the clock mode.
  156.  
  157.  
  158. Opening Additional 
  159. Sessions
  160. When you've initially opened a connection to a single host, you 
  161. can open a second connection, to that host or a different one, by 
  162. pressing ALT-A (A for add). NCSA Telnet responds by prompting 
  163. you for the name of a computer to which it should attempt a 
  164. connection.
  165.  
  166. Indicating the Host
  167. NCSA Telnet can only communicate with host computers that have 
  168. IP addresses. You or the NCSA Telnet program can look up IP 
  169. addresses in several different ways.
  170.  
  171. 1.    Use any name that is in the configuration file. (Your system 
  172. administrator can tell you the names listed there.)
  173. 2.    Your system administrator can configure NCSA Telnet to use 
  174. the domain-based nameserver to look up host names. Any name 
  175. that can be resolved by the domain nameserver can be used. An 
  176. example is sri-nic.arpa.
  177.  
  178. 3.    Use the full IP number of the machine, in decimal, separated by 
  179. periods, such as 192.17.22.20.If the machine is on the same 
  180. Ethernet,
  181.  
  182. 4.     If the machine is on the same Ethernet, enter a pound sign (#), 
  183. followed by the host number it uses on your Ethernet. The host 
  184. number the machine determined by the class of addressing and 
  185. the subnet mask (which your system administrator can 
  186. determine for you). For example, if your PC is host 
  187. 192.17.22.20, you can access host 192.17.22.30 by entering 
  188. #30 for the host address.
  189.  
  190. NCSA Telnet allows you to specify which port number (on the host) 
  191. you are connecting to. When you enter the host number, enter a # 
  192. symbol right after the IP number, then enter the port number you 
  193. wish to connect to. For example, if you enter 141.142.221.17#2000, 
  194. this command connects you to the machine 141.142.221.17, port 
  195. number 2000.
  196.  
  197.  
  198. Estimating the Host 
  199. Response Time
  200. NCSA Telnet attempts to make a login connection with the named 
  201. host. Usually the connection is instanta-neous, and the host 
  202. machine prompts you for a login name immediately. However, the 
  203. connection attempt may take several seconds. Even after NCSA 
  204. Telnet completes the connection, it may take additional time (up to 
  205. two minutes) to prompt you for a login name if a remote host is 
  206. heavily loaded. 
  207.  
  208. When the connection is established, the asterisk (*) in the status 
  209. box for the connection disappears or changes to a small box. If 
  210. NCSA Telnet makes the connection, but the remote host does not let 
  211. you log in, you may want to press ALT-X to end the connection.
  212.  
  213.  
  214. Using Scrollback Mode
  215. The SCROLL LOCK key performs two functions. It prevents the 
  216. screen from scrolling when new text arrives, and also puts you 
  217. into scrollback mode. In scrollback mode, both the up and down 
  218. arrow keys and PG UP and PG DN keys scroll the screen 
  219. backwards and forwards. When you press the SCROLL LOCK key 
  220. again, it ends scrollback mode and resets the working area of the 
  221. screen. 
  222.  
  223. The number of lines the program saves is limited by the amount of 
  224. memory in your machine and its setting in the configuration file. 
  225. If your PC runs out of memory, or the specified number of lines 
  226. have already been stored, NCSA Telnet starts dropping the lines at 
  227. the top of the scrollback as you add new lines to the bottom.
  228.  
  229. NOTE:  No other commands work while you are using scrollback 
  230. mode.
  231.  
  232.  
  233. Using the Cut and Paste 
  234. Functions
  235. The cut and paste functions allow you to copy blocks of text from 
  236. one session to another, or within the same session. To use these 
  237. functions, follow these steps:
  238.  
  239. 1.    Enter Scrollback mode via Scrl_Lock or the right mouse button.
  240.  
  241. 2.    Move the cursor to the beginning position of the text you wish to 
  242. copy, and press the space bar.
  243.  
  244. 3.    Move the cursor to the end of the text and press the space bar 
  245. again. This action selects the area to copy. 
  246.  
  247. 4.    Press ALT-C while still in scrollback mode. This action copies 
  248. the text into a buffer.
  249.  
  250. 5.    Exit Scrollback mode, and switch sessions by pressing ALT-N 
  251. or ALT-B, if you desire. 
  252.  
  253. 6.    Position the cursor where you wish to insert the text, and press 
  254. ALT-V. This action inserts the text at the current position as if 
  255. you had typed it in.
  256.  
  257. You can use the copy and paste functions without touching the 
  258. keyboard if you have a Microsoft-compatible mouse attached and 
  259. driver loaded. 
  260.  
  261. 1.    Press the right mouse button to enter Scrollback mode. 
  262.  
  263. 2.    Scroll to the beginning of the text you wish to copy, and press the 
  264. left mouse button. 
  265.  
  266. 3.    Move the cursor to the end of the text, and press the left mouse 
  267. button again. 
  268.  
  269. 4.    Press and hold the left mouse button, press the right mouse 
  270. button, then release both buttons. This action copies the text into 
  271. the buffer. 
  272.  
  273. 5.    Exit Scrollback mode by pressing the right mouse button. 
  274.  
  275. To paste the buffer to the screen, press and hold the right mouse 
  276. button, then press the left mouse button, then release them both. The 
  277. text should appear as if you typed it in.
  278.  
  279.  
  280. Switching Between 
  281. Sessions (ALT-N)
  282. The status line at the bottom of the screen indicates the active telnet 
  283. sessions. To rotate to the next session, press ALT-N (for next). 
  284. This action makes the next session the current one and moves its 
  285. name to the lower left corner of the screen. Any characters you now 
  286. type on the keyboard are sent to this, the current session.
  287.  
  288. To move back one session, press ALT-B (for back).
  289.  
  290.  
  291. Displaying Console 
  292. Messages (ALT-Z)
  293. In the process of connecting and communicating with other hosts 
  294. via TCP/IP, NCSA Telnet provides you with information on the 
  295. console (message) screen. To see this screen, press ALT-Z. Your 
  296. sessions are still running; however, you cannot see them. When 
  297. you have viewed the messages, press any key to return to your 
  298. session. The information on the console screen can tell you about 
  299. errors, warnings, FTP access to your PC, and network conditions 
  300. that may be of concern to network administrators.
  301.  
  302.  
  303. Exiting the Present 
  304. Connection (ALT-X)
  305. To close the current session, press ALT-X. A dialog box appears 
  306. prompting you to confirm that the connection should be closed. 
  307. Once confirmed, the connection shuts down.  The close may take 
  308. several seconds to complete.  
  309.  
  310. NOTE:  You can press ALT-X to log out of a host as well as 
  311. terminate a given session, but the command bypasses normal 
  312. conventions and may cause problems for the host. The correct way 
  313. to close a connection with a host is to log out of the host using the 
  314. normal logout procedure for that host. 
  315.  
  316.  
  317. Capture File Operations 
  318.  
  319. Text that appears on the screen can be captured and sent to a file or 
  320. the local printer. When you press ALT-C, capture is turned on. 
  321. Pressing ALT-C again toggles capture off. Any text that appears on 
  322. the screen is captured and appended to the capture file. NCSA 
  323. Telnet never erases the capture file, only appends text to it. The 
  324. default capture file is named capfile, but you can change that, as 
  325. discussed in the next session.
  326.  
  327.  
  328. Designating a Capture File
  329. You can designate a different capture file by using the Parameter 
  330. menu. When you press ALT-P the Parameter menu appears. (Most 
  331. of the Parameter menu choices are discussed in Chapter 3, "More 
  332. About Managing Sessions.") Use the arrow keys to select the 
  333. Parameter menu entry for the capture filename. Press RETURN 
  334. to clear the current entry and then enter your new filename. After 
  335. you've changed the name of the capture file, all subsequent ALT-C 
  336. commands will use the new capture file. You can also change the 
  337. name of the capture file "permanently" in the configuration file 
  338. (see Chapter 6, "Installation and Configuration.").
  339.  
  340.  
  341. Using PRN
  342. If you want to send all captured text directly to a local printer, 
  343. follow the directions above for naming new filenames. Enter prn 
  344. as the new filename. This name is the default filename for 
  345. printing in the NCSA Telnet program. PC-DOS reserves this 
  346. filename for the printer.
  347.  
  348. A common problem can occur while you are capturing files to the 
  349. printer that can cause NCSA Telnet to abort. If the printer is off-
  350. line or out of paper when a capture begins, the message:
  351.  
  352. Error, A(bort) R(etry) or I(gnore)? 
  353.  
  354. appears on the screen. For the former problem, turn the printer on 
  355. and off and then press R for retry. Do not press A at this point 
  356. because it will abort NCSA Telnet and cut off all of your network 
  357. connections.
  358.  
  359.  
  360. Using One Capture at a 
  361. Time
  362. You can capture text to a file or the printer in any session, but not 
  363. for more than one session at a time. When a capture is active for a 
  364. session in the background, you cannot invoke capture on the 
  365. current session. If you attempt to do so, you will not get the 
  366. confirmation message on line 25 and NCSA Telnet reminds you of 
  367. the error. The capture procedure will continue to capture all text for 
  368. the background session while you interact with the current 
  369. session.
  370.  
  371. If you press ALT-D, NCSA Telnet dumps the contents of the current 
  372. session screen into the capture file if one is not already open. If a 
  373. capture file is open, nothing happens when you press ALT-D.
  374.  
  375. NOTE:  If you press ALT-D, NCSA Telnet dumps only the contents 
  376. of the current session screen into the capture file. If you press ALT-
  377. C, however, NCSA dumps everything from your current session 
  378. into the capture file.
  379.