home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / mac / 9 / MacLayers.doc < prev    next >
Encoding:
Text File  |  1990-06-05  |  30.2 KB  |  673 lines

  1.  
  2.                         MacLayers Document
  3.  
  4.                    Version 1.00 March 17, 1990
  5.  
  6. MacLayers provides multi-window capability for a Macintosh connected
  7. to a host UNIX(TM) system with sockets support. Each window may be 
  8. associated with a shell, login to a different host, or an individual 
  9. command. Complete facilities are available for controlling the window 
  10. and the associated host processes attached thereto.
  11.  
  12.  
  13.                    What You Need To Run MacLayers
  14.  
  15. 1) A Unix host which supports the sockets protocol.
  16.  
  17. 2) A Macintosh with more than 128k of RAM and connected to the host. 
  18.  
  19. 3) The MacLayers Macintosh Application provided with this package.
  20.  
  21. 4) The Unix host server command 'layers' provided with this package.
  22.  
  23. 5) If you want to resize windows which are logged into a second BSD
  24.    machine or resize windows on a BSD machine running in non-layers 
  25.    mode then you need the 'layersize' command provided with this package.
  26.  
  27. 6) If you want to specify window titles on your own (such as to indicate
  28.    your current directory or other such information) you need the Unix 
  29.    'layertitle' command provided with this package.
  30.  
  31.  
  32.  
  33.                          MacLayers Operation
  34.  
  35. The MacLayers Application on the Macintosh starts up as a garden variety 
  36. host-to-terminal vt-100 emulator. (As such you can run it with any
  37. host, not just a BSD machine.) Baud rate and other configurations 
  38. are set by selections in the Control menu. MultiFinder is fully 
  39. supported so you can use other applications while MacLayers is 
  40. executing and downloading.
  41.  
  42. The initial or any document window may be saved via the "Save As" File
  43. menu option. When this happens the file is designated as a MacLayers
  44. application document and contains not only logged text from the host 
  45. communications in that window but also the current Control menu settings.
  46.  
  47. Once the initial 'layers' command is executed on the host (use no options 
  48. or parameters) MacLayers and the host start operating in MacLayers
  49. protocol mode. Automatically the document file window is closed and
  50. reopened as layer number 1 running with a new shell. The shell is either
  51. /bin/sh or the shell indicated by your $SHELL environment variable.
  52. The term 'layer' refers to a process group running on the Unix host 
  53. and the associated MacLayers window to which the group is attached.
  54.  
  55. The Macintosh Layer menu list shows the status of currently opened layers 
  56. and read-only text files (described later). Selecting the menu item
  57. brings the associated window up front.
  58.  
  59. Layer number 1 is always associated with your startup document. Its
  60. shell identifies itself to the host as your login shell so that broadcast 
  61. messages and commands like 'talk' and 'write' will be properly redirected 
  62. to that window. (The current mesg(1) state remains unchanged.)
  63.  
  64. You can start a new shell layer via the New menu item from the Layers
  65. menu. You can also start a new layer window by issuing the 'layers' 
  66. command in a shell layer window. If you use no operands then the new 
  67. layer window will be a shell. However, instead of a shell you can specify 
  68. any command you wish by simply adding it as a parameter.  Examples: 
  69.  
  70.                       layers vi testfile.c
  71.  
  72.                       layers telnet earth
  73.  
  74. If you are specifying a shell then you can also elect to have it be a 
  75. login shell by adding a -l option. This allows broadcast/write/talk 
  76. capabilities for that window. By default only the document layer 
  77. (number 1) always starts out as a login shell.
  78.  
  79. The host is always kept informed of your current window size and programs
  80. using curses(3) like 'vi' and 'more' will properly adapt. However, most
  81. utilities only size the window once when they start up so changing
  82. the window size is verboten after they are running.  MacLayers normally
  83. disallows window resizing when it recognizes that you are running such 
  84. a program. This can be overridden by holding down the shift key when 
  85. resizing the window. A 'vi' symbol appears in the lower right window 
  86. 'growbox' area when MacLayers detects you are running a cursor moving
  87. type of program. Zooming also is disallowed at this time unless both the
  88. zoomed and non-zoomed state have exactly the same character line width
  89. and height.
  90.  
  91. See the section "Logging Into Another Host" below for information on
  92. proper window sizing when your window is being used to do a login command
  93. into another host.
  94.  
  95.  Note: You may have to hit return once after some programs terminate 
  96.        to get MacLayers to recognize you are out of 'vi' mode.
  97.  
  98. The "enter" key is typically used to send a break (SIGINT) to all 
  99. processes associated with that layer window. The method can be configured 
  100. in the Control menu Terminal item.
  101.  
  102. You may terminate the window's processes with the Layers menu 
  103. "SIGTERM/SIGHUP Layer" item. The layer may also be killed by closing its
  104. window (SIGHUP). When a layer process group terminates on the host 
  105. its window is automatically closed.
  106.  
  107. MacLayers exits layers mode when the last (or only) layer window is closed.
  108. You may also use the Layers menu "Shutdown" to terminate layers mode.
  109. You cannot quit the MacLayers application while in layers mode but must 
  110. Shutdown the multi-window mode first.
  111.  
  112. You can abort host layers by using the Control menu "Abort Host Layers" 
  113. item which is always available. This may be necessary if your Macintosh 
  114. loses contact with the host and you restart the MacLayers application at
  115. which time the application would not be in layers mode but the host would.
  116. If the MacLayers application aborts due to a non-recoverable problem 
  117. it will inform the host to terminate layers mode before returning to the 
  118. Finder.
  119.  
  120.   More About Window Sizing
  121.  
  122. Each MacLayers window has two complete window size environments, a zoomed
  123. state size and a non-zoomed state size. Each state may have its own
  124. associated font size and screen location. When you change the window size 
  125. by dragging the grow corner (bottom right) you convert the window into 
  126. its zoomed state. Clicking the zoom box in the title bar switches between 
  127. the two states. Simply moving a window doesn't change its state. Both the 
  128. font and size for the two states can be set by the Control menu "Default 
  129. Window Settings" and "Current Window Settings" items. The default item 
  130. settings are used when any new windows are created.
  131.  
  132.   Logging Into A Secondary Host
  133.  
  134. If you log onto another system from within a layer window then that system 
  135. will not know of your current window's size. MacLayers provides you with
  136. a way to inform that system of this information if the system is a BSD 
  137. or System V Unix.
  138.  
  139. For remote BSD systems you can execute the 'layersize' command provided 
  140. with this package. (The command must be copied or built on the remote 
  141. system and be accessible by your shell there.) When at the shell command 
  142. prompt select the Control menu item "Inform BSD of Window Size" and a 
  143. string will be sent invoking the 'layersize' command. This informs the 
  144. remote kernel of the current process window size. If your BSD .login or 
  145. .profile uses the 'tset' command to set the terminal type then you must 
  146. add the -I option to keep 'tset' from forcing each login window to be 
  147. treated as always having 24 lines (the vt-100 default.)
  148.  
  149. System V allows window (actually screen) sizes to be specified with
  150. the environment variables "COLUMNS" and "LINES". You can automatically
  151. set these shell variables when at a shell command prompt by selecting
  152. the Control menu "Inform System V of Window Size" item. 
  153.  
  154. It is up to you to inform the indirect login host of any window size 
  155. changes by using the menu items. Your terminal type on such hosts 
  156. should be specified as vt100 if you wish to execute screen oriented 
  157. commands such as 'vi' or 'more'.
  158.  
  159.                         Other Capabilities
  160.  
  161.    Cursor Positioning In 'vi' Mode
  162.  
  163. When in 'vi' mode MacLayers provides a useful cursor moving feature.
  164. Double-clicking in the window causes a series of vi commands to be 
  165. issued which cause the insertion cursor to move to that location.
  166. You must not be in vi insert mode or the commands will simply be taken
  167. to be text that you have typed. (You can do that just for fun to see
  168. what MacLayers sends on a double-click.)
  169.  
  170.    Read-only Text Files
  171.  
  172. MacLayers can open up text files as read-only windows by using the 
  173. "Open Text" File menu. Such windows can have their contents copied to 
  174. the clipboard but may never be altered in any way. Text window titles show
  175. the circle-r (registered trademark) to let you know they are read-only 
  176. and a "no-write" symbol appears at the bottom right portion of the
  177. window (the "grow" area.)
  178.  
  179.    Window Aliasing
  180.  
  181. At times you may wish to view two portions of a communication window's 
  182. contents at one time. The File menu "Open Window Alias" will create a 
  183. new read-only window for any communications window and this can be 
  184. scrolled to any independent position desired just like a text-only window.
  185.  
  186. Since in-coming text from the computer always forces a window to the 
  187. bottom for proper capturing, the window aliasing feature can be used 
  188. to open a surrogate window that is immune to this action.
  189.  
  190.    XMODEM Downloading
  191.  
  192. MacLayers has a download facility for accepting downloaded XMODEM 
  193. MacTerminal ('macput' command) and macbinary ('macbput' command) files. 
  194. Straight vanilla XMODEM is not supported. A copy of the public domain 
  195. macbinary downloading program 'macbput' is provided with this package.
  196.  
  197. Only one window can be doing a XMODEM download at any one time.
  198. Downloading does not effect any other MacLayers operations so you can
  199. freely use any other windows or applications (with MultiFinder) while 
  200. a download is in progress. Remember though that the topmost window 
  201. receives the highest priority data transfer from the host so for the 
  202. fastest downloading keep the XMODEM layer window the active window.
  203.  
  204. The File menu "Download Site" can be used to preselect the location
  205. where downloads are to occur. By default files are placed where the
  206. startup document resides. This setting is forgotten each time the 
  207. MacLayers application terminates.
  208.  
  209. If you have an error-free line then setting the "Fast" mode in the 
  210. Control menu "File Transfer" selection will speed up download by about
  211. 28%.
  212.  
  213.   Downloading Examples
  214.  
  215. The macbput utility provided with this package can be run on the host
  216. Unix system and is used to ship files to a Macintosh running MacLayers. 
  217. (Some Unix systems already have a utility called macput which is used in 
  218. exactly the same way. But macbput properly updates Macintosh file dates 
  219. concerning the time of original creation and last use.)
  220.  
  221. To download a standard Unix text file, for example one created by a 
  222. editor such as vi or emacs, enter the following command:
  223.  
  224.           macbput -u filename
  225.  
  226. The transfer will start automatically and will create a Macintosh file 
  227. of type TEXT on the Macintosh which can be opened by applications such as 
  228. MacWrite and Word.
  229.  
  230. Other types of Macintosh files and applications may also be downloaded. 
  231. On the host Unix system they may take on one of many forms. If you have 
  232. a single file which ends in the name "hqx" then it must first be converted 
  233. into three files with names ending in .info, .data and .rsrc with a 
  234. utility such as xbin (not provided.)
  235.  
  236.     xbin  filename.sit.hqx
  237.  
  238. If you have the .info, .data and .rsrc files then you are ready to 
  239. download with the macbput (or macput) command. Specify only the front 
  240. part of the file name, the part before the .info, .data and .rsrc.
  241.  
  242.     macbput  filename.sit
  243.  
  244. The transfer will start automatically and upon completion a copy of the 
  245. file will be available on the Macintosh.
  246.  
  247. Sometimes the host version of the file will not be in three pieces but
  248. instead exist as a single binary (non-text) file. These are called 
  249. macbinary files and almost always end in the suffix ".bin". Macbinary 
  250. files may be converted to the three file info, data and rsrc format with 
  251. utilities such as "mcvert" (not provided) and then downloaded with macbput
  252. as above. It is also possible to directly download a macbinary file if 
  253. you have a so-called XMODEM download utility. (One such utility is 
  254. called "xmodem".) To accomplish this, issue the download command on the 
  255. host:
  256.  
  257.     xmodem -sb filename.bin
  258.  
  259. and then select the File menu "Download File" item. The download 
  260. should start at that time. But if it doesn't you may have to invert the 
  261. Control menu "File Transfer ..." CRC/Checksum selection and try again.
  262. Note that downloading via XMODEM utilities will not auto-start the
  263. process on the Macintosh. You must use the "Download File" menu item
  264. to start the Macintosh side of the operation.
  265.  
  266.   Paste Speed
  267.  
  268. Unix is known for the ease with which its tty device drivers can be
  269. overrun by input. (This causes data to be lost.) MacLayers provides
  270. time delay options which can be set for pasting text into a window.
  271. (Data pasted into a window is sent on to the host.) The options are 
  272. in the Control menu "File Transfer" selections.
  273.  
  274.   Preferences Menu Item
  275.  
  276. The Control menu Preferences item provides user selectable options for 
  277. highlighted text format and cursor display among other things.
  278.  
  279.   Window or Selection Printing
  280.  
  281. The entire window or the current selection may be printed by activating
  282. the File menu "Print" entry. If you have an early Macintosh model with 
  283. only 64K of ROM then printing will refuse to work due to Apple's lack of
  284. support for that machine in the MPW programming environment.
  285.  
  286.   Vertical Window Scrolling With Keyboard Keys
  287.  
  288. You can scroll the active window up or down via the key sequences given
  289. below. The second sequence for each option is an alternate provided only 
  290. for keyboards not having arrow keys:
  291.  
  292.     COMMAND+UPARROW          scroll back one page
  293.  or COMMAND+"'"
  294.  
  295.     COMMAND+DOWNARROW        scroll forward one page
  296.  or COMMAND+'/'
  297.  
  298.     COMMAND+OPTION+UPARROW   scroll back one line
  299.  or COMMAND+OPTION+"'"
  300.  
  301.     COMMAND+OPTION+DOWNARROW scroll forward one line
  302.  or COMMAND+OPTION+'/'
  303.  
  304.     COMMAND+SHIFT+UPARROW    scroll to the top of the file
  305.  or COMMAND+SHIFT+"'"
  306.  
  307.     COMMAND+SHIFT+DOWNARROW  scroll to the bottom of the file
  308.  or COMMAND+SHIFT+'/'
  309.  
  310.   Horizontal Window Movement With Keyboard Keys
  311.  
  312. MacLayers does not directly support horizontal scrolling of window contents.
  313. However, the entire window can be easily moved right or left with keyboard
  314. sequences.  Requesting a movement right or left will bring the opposite 
  315. edge of the window into view on the screen. If the opposite edge is 
  316. already in view then the window is moved still further in the indicated 
  317. direction.
  318.  
  319. This capability when used with the vertical scrolling key sequences allows
  320. small screen Macintosh users to comfortably manipulate windows that are 
  321. wider than the screen.
  322.  
  323. Here are the key sequences provided. The second sequence for each option 
  324. is an alternate provided only for keyboards not having arrow keys:
  325.  
  326.     COMMAND+LEFTARROW
  327.  or COMMAND+'<'               move window left
  328.  
  329.     COMMAND+RIGHTARROW
  330.  or COMMAND+'<'               move window right
  331.  
  332.  
  333.   Tandem Scrolling
  334.  
  335. Holding the shift key down while selecting a vertical line or page
  336. scroll with the mouse will automatically cause the same scroll to be
  337. attempted on the next lower MacLayers window (if any.) This is handy
  338. when eyeballing two long similar sections of text for differences.
  339.  
  340.   Special Keyboard Sequences
  341.  
  342. For emacs users MacLayers allows a metakey sequence to cause bit 7 (the
  343. high bit in a character) to be set. Combining both the command and
  344. option keys with any other key sequence will cause bit 7 to be forced
  345. on. Thus, keyboards having a built-in control key can generate all 256
  346. possible 8-bit characters. Macintoshes with old non-ADB keyboards will 
  347. ignore this treatment for the "'" or "/" characters since they are 
  348. required for the window scrolling movements indicated earlier.
  349.  
  350. For users requiring the generation of ASCII NUL (a zero byte, sometimes
  351. called the IDLE character) an alternative to CONTROL-@ (also CONTROL-2) 
  352. is to issue CONTROL-space (also OPTION-space.) This follows vt-100 
  353. terminal convention.
  354.  
  355.   Find Capabilities
  356.  
  357. The Find menu items allow searching windows for specific contents or
  358. going to the current selection.
  359.  
  360.   Iconed Window Capability
  361.  
  362. A unique feature of MacLayers is the ability to shrink a window to an
  363. icon. While iconed the window will still actively display its contents
  364. and scroll just like a standard sized window.
  365.  
  366. To iconize a window simply double-click its title bar or select the
  367. Iconize menu item from the Layers menu. While iconed the window may be
  368. moved around just like a Finder Icon and the miniaturized window retains
  369. its own independent location.
  370.  
  371. A window is deiconized when you double click it, type input to it as the 
  372. top window, select it with a Layers menu item, or select the Deiconize 
  373. Layers menu item.
  374.  
  375. Just for fun MacLayers allows you to scroll a iconed window with the
  376. vertical scroll keys (defined earlier) without causing it to deiconize.
  377.  
  378. For users running under MultiFinder standard windows can be auto-iconed
  379. temporarily while MacLayers is not the front most application. A check
  380. box in the Preferences menu dialog box enables this action. If checked
  381. then holding the shift key down while switching to another application
  382. will temporarily inhibit the auto-iconing.
  383.  
  384.   Icons to Default Positions
  385.  
  386. This menu selection from the Control menu item resets the positions of
  387. all iconed windows such that when iconed they appear along the top, right,
  388. left or bottom of the screen. There is also an option for the bottom where
  389. only the titles show. This allows the user to treat the titles of iconed 
  390. windows as though they are buttons at the bottom of the screen. By double
  391. clicking the button (which is really the title of the iconed window) 
  392. the window returns to its full size.
  393.  
  394. The menu item simply resets the position for all icon windows to the
  395. designated choice selected in the Preferences dialog. They may then be 
  396. moved again by you to other areas of the screen.
  397.  
  398.   Shrink Window To Title
  399.  
  400. At times the desktop becomes too cluttered so MacLayers provides yet 
  401. another feature to ease the busy desktop problem. Any MacLayers window
  402. can be shrunk to just its title bar by shift-double-clicking the title bar 
  403. or selecting the Titleize item from the Layers menu item. In effect the
  404. window is still there but only the title bar remains visible. The window
  405. remains titled even if output is being sent to it. Moving the title bar 
  406. has the same effect as moving the window.
  407.  
  408. The window may be detitleized by double-clicking the title bar or selecting 
  409. the Detitleize item from the Layers menu.
  410.  
  411.   Hide Window Capability
  412.  
  413. You may also completely hide any MacLayers window at any time by selecting
  414. the Hide item from the Layers menu. The window will stay hidden until 
  415. output is sent to it from the host or you reactivate it from the Layers 
  416. menu.
  417.  
  418.   Cycling Through Windows
  419.  
  420. All active MacLayers windows may be displayed one after the other in
  421. numerical order by selecting the Layers menu Cycle item. Hidden windows
  422. do not appear in the cycle list.
  423.  
  424.   Specifying a Layer Window Title
  425.  
  426. The 'layertitle' command provided with this package allows a single
  427. argument (which may be a string) to specify a title to be displayed
  428. for the controlling window of the process. The source for this command
  429. should compile and execute on any Unix system and so can be used even for
  430. windows which are logged into remote hosts.
  431.  
  432. An example use of this feature is to create your own "cd" directory 
  433. change shell command and have it always display the current directory 
  434. name in the title bar.
  435.  
  436. Expert users can examine the 'layertitle' source code to discover 
  437. the control sequence needed to send the ANSI Private Message string which 
  438. actually causes the new title to be recognized. Knowing this sequence 
  439. standard shell echo facilities can be used in place of the 'layersize' 
  440. command.
  441.  
  442.   Sending an Interrupt to a Window Process
  443.  
  444. The Send Interrupt To Layer item of the Layers menu causes a internal
  445. packet to be sent to the host indicating that a SIGINT signal be sent to 
  446. the UNIX process group attached to the window. This is only available in 
  447. layers mode.
  448.  
  449. At times the UNIX tty mode settings for a process may become garbled
  450. and if the Enter key is sending DEL or CONTROL-C this may not be enough
  451. to interrupt the process. Selecting this menu item bypasses the tty
  452. driver and so ensures that an interrupt signal is received.
  453.  
  454.   Reset Terminal
  455.  
  456. Occasionally you may have bad data transmitted to the Macintosh which can
  457. cause the vt-100 emulation to enter a special graphics mode or setup
  458. a vt-100 screen scrolling area smaller than your full window size. If this 
  459. occurs the Control menu item "Reset Terminal" will reinstate normal 
  460. operation. This in no way affects layers mode operation.
  461.  
  462.   Sending Break in Layers Mode
  463.  
  464. A hardware 'break' can be placed on the host serial line with the Control
  465. menu Send Hardware Break item. However, when in layers mode this is only
  466. allowed if the line is idle to guarantee that no internal control packets 
  467. become garbled or lost. A beep occurs when the line is busy.
  468.  
  469.   Aborting Current Activity
  470.  
  471. Paste and XMODEM operations may be aborted by entering COMMAND-period
  472. (cmd-.).
  473.  
  474.   Use of the Macintosh RAM Cache
  475.  
  476. For the last few years versions of the Macintosh operating system have
  477. provided a RAM cache feature configurable in the control panel to speed 
  478. up data transfers to floppy and hard disks. There are two types of 
  479. environments where this option is especially useful with MacLayers.
  480.  
  481. The first situation is for users running off of floppy disks. In this case
  482. running with at least the minimal RAM cache size of 32K will inhibit the 
  483. constant whirring of your diskettes and improve screen text display speed.
  484.  
  485. Users using high-speed communication connections (9600 and above) make up 
  486. the second group that may need to run with the RAM cache turned on. This 
  487. is necessary to avoid data loss when receiving large amounts of 
  488. uninterrupted data. An example of this would be the listing of a large 
  489. source file directly to your window. Once the RAM cache is filled it
  490. purges itself by writing the cached data to an output file. The Macintosh 
  491. serial driver can lose high speed data coming in if diskette or hard disk 
  492. accesses are being done at the same time. (This is called data overrun.) 
  493. Users with this potential situation need to guarantee that the size of 
  494. their ram cache is at least as big as the largest amount of data they 
  495. want to capture. (This does not concern XMODEM transfers. They do not 
  496. require RAM cache although cache of at least minimum size can speed 
  497. these up as well.)
  498.  
  499.   Disk Full Processing
  500.  
  501. MacLayers will put up a warning box and delete all data in the scroll 
  502. file up to the current output position if the disk where the file resides 
  503. becomes completely filled.
  504.  
  505.   Minimal Memory Environment
  506.  
  507. For users with extremely tight memory requirements MacLayers can be forced 
  508. to run in a memory partition approximately 95k bytes smaller than normal. 
  509. When run in this manner MacLayers will beep at startup and issue a warning 
  510. that only a single window is allowed. No more than one window can be open 
  511. at a time and no read-only text windows are available in this mode. Also,
  512. the maximum size of data handled by cut and paste operations is more
  513. restrictive.
  514.  
  515.   Enhanced Terminal Capabilities
  516.  
  517. MacLayers supports standard vt-100 terminal protocol as described in BSD
  518. Termcap(5) and System V Terminfo(4). But there are also two extra
  519. capabilities which can speed up screen updating particularly with screen
  520. editors. UNIX users who specify vt100 terminal type only for the sake
  521. of running MacLayers can include these extra capabilities by using the
  522. replacement terminal descriptions below. These not only include the extra 
  523. MacLayers terminal capabilities but also remove timing waits required 
  524. by real vt-100's thus providing even further speed improvements.
  525.  
  526. For BSD Termcap the following description can be used:
  527.  
  528.  #                    MacLayers vt-100 Termcap
  529.  d0|vt100|vt100-am|MacLayers dec vt100:\
  530.     :cr=^M:do=^J:nl=^J:bl=^G:co#80:li#44:cl=\E[;H\E[2J:\
  531.     :le=^H:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
  532.     :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
  533.     :md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:is=\E[1;24r\E[24;1H:\
  534.     :rf=/usr/lib/tabset/vt100:\
  535.     :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
  536.     :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
  537.     :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:ta=^I:pt:sr=\EM:vt#3:xn:\
  538.     :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:\
  539.     :dc=\ED:ic=\EI:
  540.  
  541. The System V Terminfo specialized definition is:
  542.  
  543.  #        Special System V Terminfo definition for MacLayers vt100
  544.  vt100|vt100-am|dec vt100 without tabs and with MacLayers extras,
  545.     am, mir, msgr, xenl, xon, cols#80, lines#24, vt#3,
  546.     acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  547.     bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
  548.     csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\b,
  549.     cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
  550.     cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
  551.     dch1=\ED, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
  552.     home=\E[H, ich1=\EI, ind=\n, ka1=\EOq, ka3=\EOs, kb2=\EOr,
  553.     kbs=\b, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
  554.     kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx, kf2=\EOQ,
  555.     kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
  556.     kf9=\EOw, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E[?1l\E>,
  557.     rmso=\E[m, rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
  558.  sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
  559.     sgr0=\E[m^O, smacs=^N, smkx=\E[?1h\E=,
  560.     smso=\E[1;7m, smul=\E[4m, tbc=\E[3g,
  561.  
  562.  
  563.  
  564.                                  Hints
  565.  
  566.  *) MacLayers must internally handle your window display differently
  567.     whenever the cursor is being positioned above the bottom line such
  568.     as occurs during the execution of a screen editor on the host. The 
  569.     "vi" symbol is displayed in the grow box during this time to indicate 
  570.     this special mode. During so-called "vi" mode you are not allowed
  571.     to change the window size. Holding the shift key down will override
  572.     this restriction and allow you to resize the window. But remember 
  573.     that if you are running a utility then the utility may not be able 
  574.     to dynamically adjust to a new window size. If it can then you must 
  575.     do whatever is required of the utility to inform it of the change.
  576.  
  577.     At times MacLayers may think the window is still in "vi" mode even
  578.     after an editor or cursor controlling utility has finished. One
  579.     instance of this is immediately after a "clear screen" command.
  580.     MacLayers does not know to go out of "vi" mode until a new line is
  581.     added to the very bottom of the screen causing the screen to scroll
  582.     up a line. If the window has stayed in "vi" mode and you want to 
  583.     resize it simply hold the shift key down or type empty lines to the 
  584.     shell until the window begins to scroll again. (The "vi" will then 
  585.     disappear from the grow box.)
  586.  
  587.  *) When running in layers mode the host/MacLayers interface always
  588.     uses vt-100 protocol regardless of your TERM terminal type setting.
  589.     Thus if you only set your TERM variable to vt100 to run MacLayers 
  590.     and you always run in layers mode then you need not bother actually
  591.     setting vt100 as your Unix terminal type.
  592.  
  593.  *) As mentioned at the start of this document MacLayers can be used
  594.     as a normal vt-100 terminal emulator when connected to any host
  595.     computer. On BSD and System V systems you can also use the variable 
  596.     sized window feature in non-layers mode by following the same 
  597.     instructions given for logging into a remote host as described
  598.     in the "Logging Into A Secondary Host" section above. (This also
  599.     holds true for a layers host before the layers command is entered.) On 
  600.     systems other than BSD and System V changing the current window 
  601.     size may garble output unless there is a means for you to notify 
  602.     your connection of the new window size.
  603.  
  604.  
  605.                             Problems/Caveats
  606.  
  607.  *) The current version does not do data validation with packet retry for 
  608.     MacLayers/host internal communication. Thus poor line conditions may 
  609.     cause a host internal message to be missed. This is usually not 
  610.     catastrophic but means something won't work correctly. For instance
  611.     a window might not auto-close when a host process death occurs or 
  612.     output might be sent to the wrong window.
  613.      
  614.  *) The shell TERM variable must have the same value in your 
  615.     layer shells as it does when you initially start layers up.
  616.  
  617.  *) If you set the BSD shell TERMCAP variable then that variable must
  618.     be set in your .login file. It may not be changed to something
  619.     different in .cshrc.
  620.  
  621.  *) The host/MacLayers system attempts to give highest data communication
  622.     priority to the topmost MacLayers window at all times by throttling
  623.     down output to other windows. However due to internal UNIX kernel I/O 
  624.     buffering the attempts may not always succeed.
  625.  
  626.  *) The "Download Site" folder is always kept open which means if you 
  627.     want to trash the folder you must first choose a new download site or 
  628.     quit MacLayers.
  629.  
  630.  *) MacLayers has U.S. keyboard dependencies.
  631.  
  632.  *) The layers command will not properly work when being issued from a 
  633.     remote login into the same machine which is already running the initial
  634.     layers startup command.
  635.  
  636.  *) If a layers window text file is read as a file of type TEXT by another
  637.     application and that file has highlighted characters (as sent by the
  638.     host) embedded within it then those characters will appear as garbage 
  639.     in that application. (Specifically such characters have the high bit
  640.     [bit 7] on.)
  641.  
  642.  
  643.                                  Bugs
  644.  
  645.  *) Occasionally during or after a cursor moving utility has executed if 
  646.     the window is scrolled backwards then when it is eventually scrolled 
  647.     forward to the bottom (last) line of the file the bottom line will 
  648.     be missing from the display. If you can reproduce this problem then 
  649.     please send a complete description of how to do so to 
  650.  
  651.              uunet!rascal.ics.utexas.edu!layers-reply
  652.  
  653.  
  654.  
  655.                          Acknowledgement
  656.  
  657.   The author owes a big thanks to Werner Uhrig and his band of testers at the
  658.   University of Texas for the many bug reports and suggestions delivered 
  659.   during the intensive beta testing phase of this product. MacLayers is a 
  660.   substantially improved application as a result.
  661.  
  662.                                                 Dave Trissel
  663.                                                 Austin
  664.     
  665.     
  666.  
  667. UNIX(TM) is a registered trademark of American Telephone and Telegraph.
  668.  
  669. Macintosh is a trademark of McIntosh Laboratories and is licensed to Apple 
  670. Computer.
  671.  
  672.                      **** end of document ****
  673.