home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / layers.zoo / layers.1 next >
Text File  |  1990-06-11  |  44KB  |  1,048 lines

  1.  
  2. #! /bin/sh
  3. # This is a shell archive, meaning:
  4. # 1. Remove everything above the #! /bin/sh line.
  5. # 2. Save the resulting text in a file.
  6. # 3. Execute the file with /bin/sh (not csh) to create the files:
  7. #
  8. #    README
  9. #    layers.1
  10. #    macbput.1
  11. #    MacLayers.doc
  12. #
  13. # This archive created: Thu May 31 21:58:05 1990
  14. # By:    Roger L. Long (macintosh@dhw68k.cts.com)
  15. export PATH; PATH=/bin:$PATH
  16. echo shar: extracting "'README'" '(2241 characters)'
  17. if test -f 'README'
  18. then
  19.     echo shar: will not over-write existing file "'README'"
  20. else
  21. sed 's/^X//' << \SHAR_EOF > 'README'
  22. X                             Layers 1.0 Release
  23. X
  24. X                           ***    CONTENTS     ***
  25. X
  26. XThe following files are provided with the MacLayers package:
  27. X
  28. X  README            -  this file
  29. X  layers.1          -  the layers command manual page
  30. X  makefile          -  the layers makefile
  31. X  layers.h          -  Unix source for the layers command
  32. X  layers.c          -                ditto
  33. X  protocol.c        -                ditto
  34. X  layersize.c       -  Unix source for the layersize command
  35. X  layertitle.c      -  Unix source for the layertitle command
  36. X  MacLayers.sit.Hqx -  the MacLayers Application download file
  37. X  MacLayers.doc     -  the MacLayers User's Manual
  38. X  macbput.c         -  a downloading utility
  39. X  macbput.1         -  the macbput command manual page
  40. X
  41. XThe MacLayers.sit.Hqx file is in hexbin format. After downloading it must be
  42. Xprocessed with a Stuffit compatible utility to produce the MacLayers 
  43. Xapplication.
  44. X
  45. XMacbput is a public domain download utility for downloading macbinary files.
  46. XMacbinary files allow downloading to correctly set the Macintosh file creation 
  47. Xdate and file last used date. The version with this package has an important 
  48. Xbug fixed.
  49. X
  50. X
  51. X                         ***  SUPPORTED SYSTEMS  ***
  52. X
  53. XMacLayers has been successfully installed on the following systems:
  54. X
  55. X   SunOS 4.0.3
  56. X   SunOS 3.2
  57. X   Sequent DYNIX 3.0.12 (#DEFINE SEQUENT)
  58. X   Sequent DYNIX 3.0.4  (#DEFINE SEQUENT)
  59. X
  60. XMacLayers has failed to install on these systems:
  61. X
  62. X   AIX 2.2.1 on IBM RT        Unsupported ioctls
  63. X
  64. X
  65. X                           ***   INSTALLATION   ***
  66. X
  67. XThere are two ways to install the layers system:
  68. X
  69. X    make install
  70. X
  71. X or
  72. X    make installnopriv
  73. X
  74. XThe default is to install the 'layers' command set-uid which allows it to 
  75. Xupdate /etc/utmp and perform chown/chmod on its allocated pseudo-ttys. 
  76. XThis enables commands like 'who' to know about the presence of layers users 
  77. Xand commands like 'write' and 'talk' to communicate with them. This is not 
  78. Xa mandatory requirement however and the layers system will otherwise function.
  79. X
  80. XFor set-uid installers (especially Sequent users) there are a few customizing 
  81. Xparameters which may be of interest at the front of layers.c.
  82. X
  83. X                              *end of document*
  84. SHAR_EOF
  85. if test 2241 -ne "`wc -c < 'README'`"
  86. then
  87.     echo shar: error transmitting "'README'" '(should have been 2241 characters)'
  88. fi
  89. fi # end of overwriting check
  90. echo shar: extracting "'layers.1'" '(4858 characters)'
  91. if test -f 'layers.1'
  92. then
  93.     echo shar: will not over-write existing file "'layers.1'"
  94. else
  95. sed 's/^X//' << \SHAR_EOF > 'layers.1'
  96. X.TH LAYERS l  "17 March 1990"
  97. X.SH NAME
  98. X.PP
  99. Xlayers, layertitle \- Protocol for MacLayers Multiwindow Terminal Emulator for Unix
  100. X.SH SYNOPSIS
  101. Xlayers                - start window protocol
  102. X.LP
  103. Xlayers [-l] [command] - create new window
  104. X.LP
  105. Xlayertitle string     - retitle current layers window
  106. X.IX  "layers" "start layers protocol, create new window"
  107. X.IX  "layertitle" "rename current layers window"
  108. X.SH DESCRIPTION
  109. X.PP
  110. XMacLayers provides multi-window capability for a Macintosh (greater than 128K)
  111. Xconnected to a host UNIX(TM) system with sockets support. Each window may be 
  112. Xassociated with a shell, login to a different host, or an individual 
  113. Xcommand. Complete facilities are available for controlling the window 
  114. Xand the associated host processes attached thereto.
  115. X.PP
  116. XTo use MacLayers, you must have the MacLayers vt-100 terminal emulation
  117. Xprogram on a Macintosh and the layers protocol program installed on your
  118. XUnix host.
  119. X.SH MACLAYERS OPERATION
  120. X.PP
  121. XThe Maclayers Application on the Mac starts up as a garden variety 
  122. Xhost-to-terminal vt-100 emulator. (As such you can run it with any
  123. Xhost, not just a Unix machine.) Baud rate and other configurations are set 
  124. Xby selections in the Control Menu.
  125. X.PP
  126. XEnter the 
  127. X.I layers
  128. Xcommand to the Unix host using no options or parameters
  129. Xto start the layers protocol.  The initial terminal window will be closed
  130. Xand replaced with a layers protocol window.  A shell is run in this
  131. Xwindow, either /bin/sh or the shell indicated by your $SHELL variable.
  132. X.PP
  133. XYou can start a new shell layer by picking "New" on the Layers menu. You can
  134. Xalso start a new layer window by issuing the
  135. X.I layers 
  136. Xcommand to a
  137. Xshell layer window. If you use no operands then the new layer window
  138. Xwill be a shell. However, you can specify any command you wish by
  139. Xsimply adding it as a parameter.  Examples: "layers vi testfile.c",
  140. X"layers telnet earth."
  141. X.PP
  142. XIf you are specifying a shell then you can also elect to have it be a 
  143. Xlogin shell by adding a -l option. This allows broadcast/write/talk 
  144. Xcapabilities for that window. The initial layer window shell defaults
  145. Xto a login shell.
  146. X.PP
  147. XWhen a layer process group terminates its window is automatically closed.
  148. XMacLayers exits layers mode when the last (or only) layer window is closed.
  149. XYou may also use the Layers Menu "Shutdown" to terminate layers mode.
  150. XYou cannot quit the MacLayers application while in layers mode but must 
  151. XShutdown the multi-window mode first.
  152. X.PP
  153. XYou can abort host 
  154. X.I layers
  155. Xby using the Control Menu "Abort Host Layers" 
  156. Xitem which is always available. This may be necessary if your Mac 
  157. Xloses contact with the host and you restart the MacLayers application at
  158. Xwhich time the host would still be in multi-window layers mode while
  159. Xthe application would not. If the MacLayers application terminates due
  160. Xto a non-recoverable problem it will always issue an order to terminate
  161. Xlayers mode on the host before returning to the Finder.
  162. X.SH XMODEM DOWNLOADING
  163. X.PP
  164. XMacLayers has a download facility for downloading XMODEM MacTerminal
  165. X('macput' command) and MacBinary ('macbput' command) files. Straight 
  166. Xvanilla XMODEM is not supported.
  167. XOnly one window can be doing a XMODEM download at any one time.
  168. XDownloading does not effect any other MacLayers operations so you can
  169. Xfreely use any other windows or applications (with MultiFinder) while 
  170. Xa download is in progress. Remember though that the topmost window 
  171. Xreceives the highest priority data transfer from the host. So for the 
  172. Xfastest downloading keep the XMODEM layer window the active window.
  173. X.SH FILES
  174. X.PP
  175. X /usr/tmp/layers/<login>       Directory created by 
  176. X.I layers
  177. X /usr/tmp/layers/<login>/host.ttySocket Created by 
  178. X.I layers
  179. X.SH AUTHOR
  180. XDave Trissel
  181. X.SH BUGS AND CAVEATS
  182. X.PP
  183. X *) The shell TERM variable must have the same value in your 
  184. Xlayer shells as it does when you initially start 
  185. X.I layers
  186. Xup.
  187. X.PP
  188. X *) If you set the BSD shell TERMCAP variable then that variable must
  189. Xbe set in your .login file. It may not be changed to something
  190. Xdifferent in .cshrc.
  191. X.PP
  192. X *) The 
  193. X.I layers
  194. Xcommand will not properly work when being issued from a
  195. Xremote login into the same machine which is already running the
  196. Xinitial 
  197. X.I layers
  198. Xstartup command.
  199. X.PP
  200. X *) There is no file upload facility.
  201. X.PP
  202. X *) MacLayers will access the disk less often if you have RAM Cache
  203. Xenabled on the Macintosh.
  204. X.PP
  205. X *)Layers must be installed as set-uid with owner root in order
  206. Xto  be  able to correctly change the owner of the tty device
  207. Xfile for  each  window. Special  permission  may  also  be
  208. Xrequired to write the file "/etc/utmp".
  209. X.SH SEE ALSO
  210. X.PP
  211. XThe MacLayers program is
  212. Xcompletely described in the manual that accompanies it.
  213. X.PP
  214. XManual page courtesy of Peter Newton.
  215. X.PP
  216. XUNIX(TM) is a registered trademark of American Telephone and Telegraph.
  217. XMacintosh is a trademark of McIntosh Laboratories and is licensed to Apple 
  218. XComputer.
  219. SHAR_EOF
  220. if test 4858 -ne "`wc -c < 'layers.1'`"
  221. then
  222.     echo shar: error transmitting "'layers.1'" '(should have been 4858 characters)'
  223. fi
  224. fi # end of overwriting check
  225. echo shar: extracting "'macbput.1'" '(2849 characters)'
  226. if test -f 'macbput.1'
  227. then
  228.     echo shar: will not over-write existing file "'macbput.1'"
  229. else
  230. sed 's/^X//' << \SHAR_EOF > 'macbput.1'
  231. X.TH MACBPUT local "17 Mar 1990"
  232. X.UC 4
  233. X.SH NAME
  234. Xmacbput \- send file to macintosh via macbinary protocol
  235. X.SH SYNOPSIS
  236. X.B macbput
  237. Xfile
  238. X.br
  239. X.B macbput
  240. X[
  241. X.B \-rdu
  242. X] file
  243. X[
  244. X.B \-t
  245. Xtype
  246. X]
  247. X[
  248. X.B \-a
  249. Xowner
  250. X]
  251. X[
  252. X.B \-n
  253. Xname
  254. X]
  255. X.SH DESCRIPTION
  256. X.I Macbput
  257. Xsends a file to a Macintosh running MacTerminal.
  258. XThe File Transfer Protocol settings should specify the "MacBinary"
  259. Xtransfer method.
  260. XMacbput will also work with other communications programs for the Mac
  261. X(e.g. MacLayers);
  262. Xconsult the user's manual for your macbinary-compatable communications
  263. Xprogram for more information.
  264. XThis manual page will only address the use of macbput with MacTerminal.
  265. X.PP
  266. XTo use this program, log into the unix system using MacTerminal,
  267. Xand run macbput specifying the desired options and one file to be sent.
  268. XIf MacTerminal is properly configured, it will recognize that a file
  269. Xis arriving on the serial line and put up an indicator showing how
  270. Xmuch of the file has been sent.
  271. XSeveral Control-X's may be used to force macbput
  272. Xto give up if the transfer fails.
  273. X.PP
  274. XIf none of the
  275. X.B \-rdu
  276. Xflags are specified,
  277. X.I macbput
  278. Xsends three unix files to the Mac:
  279. X.IB file .info ,
  280. X.IB file .data ,
  281. Xand
  282. X.IB file .rsrc .
  283. XThese specify the three parts of one Mac file:  the .data file
  284. Xbecomes the data fork, the .rsrc file becomes the resource fork,
  285. Xand the .info file specifies the sizes of the two forks, as well
  286. Xas the file name, file type, creation date, and other information.
  287. XThis is useful for returning files to the Mac which were stored
  288. Xusing macget or macbget.
  289. X.PP
  290. XThe
  291. X.B \-r
  292. Xflag specifies
  293. X.I resource
  294. Xmode.
  295. XEither
  296. X.IB file .rsrc
  297. Xor
  298. X.I file
  299. Xwill be sent to the Mac, along with a forged
  300. X.B .info
  301. Xfile and an empty
  302. X.B .data
  303. Xfile.
  304. XThe file sent becomes the resource fork of the Mac file.
  305. X.PP
  306. XThe
  307. X.B \-d
  308. Xflag specifies
  309. X.I data
  310. Xmode.
  311. XEither
  312. X.IB file .data
  313. X,
  314. X.IB file .text
  315. Xor
  316. X.I file
  317. Xwill be sent to the Mac, along with a forged
  318. X.B .info
  319. Xfile and an empty
  320. X.B .rsrc
  321. Xfile.
  322. XThe file sent becomes the data fork of the Mac file.
  323. X.PP
  324. XThe
  325. X.B \-u
  326. Xflag requests
  327. X.I unix
  328. Xmode, which is the same as
  329. X.I data
  330. Xmode except unix newline characters are converted
  331. Xinto carriage returns.
  332. XHuman-readable unix text files sent to the Mac using this option
  333. Xwill be compatible with applications which expect "text only" files.
  334. X.PP
  335. XThe remaining options serve to override the default
  336. Xfile type, owner, and file name to be used on the Mac.
  337. XThe default type and owner for
  338. X.I resource
  339. Xand
  340. X.I data
  341. Xmode defaults are "????", "????", and
  342. X.I unix
  343. Xmode defaults are "TEXT" and "MACA".
  344. X.SH SEE ALSO
  345. Xmacput(local), macget(local), xbin(local), macbin(local), mcvert(local)
  346. X.SH BUGS
  347. XThe macbinary protocol may not work over flow controlled communication lines,
  348. Xsome terminal concentrators, or when using rlogin.
  349. X.SH FEATURES
  350. XProperly initializes the Creation Date.
  351. X.SH AUTHOR
  352. XOriginal base code: Dave Johnson, Brown 7/31/84
  353. SHAR_EOF
  354. if test 2849 -ne "`wc -c < 'macbput.1'`"
  355. then
  356.     echo shar: error transmitting "'macbput.1'" '(should have been 2849 characters)'
  357. fi
  358. fi # end of overwriting check
  359. echo shar: extracting "'MacLayers.doc'" '(30876 characters)'
  360. if test -f 'MacLayers.doc'
  361. then
  362.     echo shar: will not over-write existing file "'MacLayers.doc'"
  363. else
  364. sed 's/^X//' << \SHAR_EOF > 'MacLayers.doc'
  365. X
  366. X                        MacLayers Document
  367. X
  368. X                   Version 1.00 March 17, 1990
  369. X
  370. XMacLayers provides multi-window capability for a Macintosh connected
  371. Xto a host UNIX(TM) system with sockets support. Each window may be 
  372. Xassociated with a shell, login to a different host, or an individual 
  373. Xcommand. Complete facilities are available for controlling the window 
  374. Xand the associated host processes attached thereto.
  375. X
  376. X
  377. X                   What You Need To Run MacLayers
  378. X
  379. X1) A Unix host which supports the sockets protocol.
  380. X
  381. X2) A Macintosh with more than 128k of RAM and connected to the host. 
  382. X
  383. X3) The MacLayers Macintosh Application provided with this package.
  384. X
  385. X4) The Unix host server command 'layers' provided with this package.
  386. X
  387. X5) If you want to resize windows which are logged into a second BSD
  388. X   machine or resize windows on a BSD machine running in non-layers 
  389. X   mode then you need the 'layersize' command provided with this package.
  390. X
  391. X6) If you want to specify window titles on your own (such as to indicate
  392. X   your current directory or other such information) you need the Unix 
  393. X   'layertitle' command provided with this package.
  394. X
  395. X
  396. X
  397. X                         MacLayers Operation
  398. X
  399. XThe MacLayers Application on the Macintosh starts up as a garden variety 
  400. Xhost-to-terminal vt-100 emulator. (As such you can run it with any
  401. Xhost, not just a BSD machine.) Baud rate and other configurations 
  402. Xare set by selections in the Control menu. MultiFinder is fully 
  403. Xsupported so you can use other applications while MacLayers is 
  404. Xexecuting and downloading.
  405. X
  406. XThe initial or any document window may be saved via the "Save As" File
  407. Xmenu option. When this happens the file is designated as a MacLayers
  408. Xapplication document and contains not only logged text from the host 
  409. Xcommunications in that window but also the current Control menu settings.
  410. X
  411. XOnce the initial 'layers' command is executed on the host (use no options 
  412. Xor parameters) MacLayers and the host start operating in MacLayers
  413. Xprotocol mode. Automatically the document file window is closed and
  414. Xreopened as layer number 1 running with a new shell. The shell is either
  415. X/bin/sh or the shell indicated by your $SHELL environment variable.
  416. XThe term 'layer' refers to a process group running on the Unix host 
  417. Xand the associated MacLayers window to which the group is attached.
  418. X
  419. XThe Macintosh Layer menu list shows the status of currently opened layers 
  420. Xand read-only text files (described later). Selecting the menu item
  421. Xbrings the associated window up front.
  422. X
  423. XLayer number 1 is always associated with your startup document. Its
  424. Xshell identifies itself to the host as your login shell so that broadcast 
  425. Xmessages and commands like 'talk' and 'write' will be properly redirected 
  426. Xto that window. (The current mesg(1) state remains unchanged.)
  427. X
  428. XYou can start a new shell layer via the New menu item from the Layers
  429. Xmenu. You can also start a new layer window by issuing the 'layers' 
  430. Xcommand in a shell layer window. If you use no operands then the new 
  431. Xlayer window will be a shell. However, instead of a shell you can specify 
  432. Xany command you wish by simply adding it as a parameter.  Examples: 
  433. X
  434. X                      layers vi testfile.c
  435. X
  436. X                      layers telnet earth
  437. X
  438. XIf you are specifying a shell then you can also elect to have it be a 
  439. Xlogin shell by adding a -l option. This allows broadcast/write/talk 
  440. Xcapabilities for that window. By default only the document layer 
  441. X(number 1) always starts out as a login shell.
  442. X
  443. XThe host is always kept informed of your current window size and programs
  444. Xusing curses(3) like 'vi' and 'more' will properly adapt. However, most
  445. Xutilities only size the window once when they start up so changing
  446. Xthe window size is verboten after they are running.  MacLayers normally
  447. Xdisallows window resizing when it recognizes that you are running such 
  448. Xa program. This can be overridden by holding down the shift key when 
  449. Xresizing the window. A 'vi' symbol appears in the lower right window 
  450. X'growbox' area when MacLayers detects you are running a cursor moving
  451. Xtype of program. Zooming also is disallowed at this time unless both the
  452. Xzoomed and non-zoomed state have exactly the same character line width
  453. Xand height.
  454. X
  455. XSee the section "Logging Into Another Host" below for information on
  456. Xproper window sizing when your window is being used to do a login command
  457. Xinto another host.
  458. X
  459. X Note: You may have to hit return once after some programs terminate 
  460. X       to get MacLayers to recognize you are out of 'vi' mode.
  461. X
  462. XThe "enter" key is typically used to send a break (SIGINT) to all 
  463. Xprocesses associated with that layer window. The method can be configured 
  464. Xin the Control menu Terminal item.
  465. X
  466. XYou may terminate the window's processes with the Layers menu 
  467. X"SIGTERM/SIGHUP Layer" item. The layer may also be killed by closing its
  468. Xwindow (SIGHUP). When a layer process group terminates on the host 
  469. Xits window is automatically closed.
  470. X
  471. XMacLayers exits layers mode when the last (or only) layer window is closed.
  472. XYou may also use the Layers menu "Shutdown" to terminate layers mode.
  473. XYou cannot quit the MacLayers application while in layers mode but must 
  474. XShutdown the multi-window mode first.
  475. X
  476. XYou can abort host layers by using the Control menu "Abort Host Layers" 
  477. Xitem which is always available. This may be necessary if your Macintosh 
  478. Xloses contact with the host and you restart the MacLayers application at
  479. Xwhich time the application would not be in layers mode but the host would.
  480. XIf the MacLayers application aborts due to a non-recoverable problem 
  481. Xit will inform the host to terminate layers mode before returning to the 
  482. XFinder.
  483. X
  484. X  More About Window Sizing
  485. X
  486. XEach MacLayers window has two complete window size environments, a zoomed
  487. Xstate size and a non-zoomed state size. Each state may have its own
  488. Xassociated font size and screen location. When you change the window size 
  489. Xby dragging the grow corner (bottom right) you convert the window into 
  490. Xits zoomed state. Clicking the zoom box in the title bar switches between 
  491. Xthe two states. Simply moving a window doesn't change its state. Both the 
  492. Xfont and size for the two states can be set by the Control menu "Default 
  493. XWindow Settings" and "Current Window Settings" items. The default item 
  494. Xsettings are used when any new windows are created.
  495. X
  496. X  Logging Into A Secondary Host
  497. X
  498. XIf you log onto another system from within a layer window then that system 
  499. Xwill not know of your current window's size. MacLayers provides you with
  500. Xa way to inform that system of this information if the system is a BSD 
  501. Xor System V Unix.
  502. X
  503. XFor remote BSD systems you can execute the 'layersize' command provided 
  504. Xwith this package. (The command must be copied or built on the remote 
  505. Xsystem and be accessible by your shell there.) When at the shell command 
  506. Xprompt select the Control menu item "Inform BSD of Window Size" and a 
  507. Xstring will be sent invoking the 'layersize' command. This informs the 
  508. Xremote kernel of the current process window size. If your BSD .login or 
  509. X.profile uses the 'tset' command to set the terminal type then you must 
  510. Xadd the -I option to keep 'tset' from forcing each login window to be 
  511. Xtreated as always having 24 lines (the vt-100 default.)
  512. X
  513. XSystem V allows window (actually screen) sizes to be specified with
  514. Xthe environment variables "COLUMNS" and "LINES". You can automatically
  515. Xset these shell variables when at a shell command prompt by selecting
  516. Xthe Control menu "Inform System V of Window Size" item. 
  517. X
  518. XIt is up to you to inform the indirect login host of any window size 
  519. Xchanges by using the menu items. Your terminal type on such hosts 
  520. Xshould be specified as vt100 if you wish to execute screen oriented 
  521. Xcommands such as 'vi' or 'more'.
  522. X
  523. X                        Other Capabilities
  524. X
  525. X   Cursor Positioning In 'vi' Mode
  526. X
  527. XWhen in 'vi' mode MacLayers provides a useful cursor moving feature.
  528. XDouble-clicking in the window causes a series of vi commands to be 
  529. Xissued which cause the insertion cursor to move to that location.
  530. XYou must not be in vi insert mode or the commands will simply be taken
  531. Xto be text that you have typed. (You can do that just for fun to see
  532. Xwhat MacLayers sends on a double-click.)
  533. X
  534. X   Read-only Text Files
  535. X
  536. XMacLayers can open up text files as read-only windows by using the 
  537. X"Open Text" File menu. Such windows can have their contents copied to 
  538. Xthe clipboard but may never be altered in any way. Text window titles show
  539. Xthe circle-r (registered trademark) to let you know they are read-only 
  540. Xand a "no-write" symbol appears at the bottom right portion of the
  541. Xwindow (the "grow" area.)
  542. X
  543. X   Window Aliasing
  544. X
  545. XAt times you may wish to view two portions of a communication window's 
  546. Xcontents at one time. The File menu "Open Window Alias" will create a 
  547. Xnew read-only window for any communications window and this can be 
  548. Xscrolled to any independent position desired just like a text-only window.
  549. X
  550. XSince in-coming text from the computer always forces a window to the 
  551. Xbottom for proper capturing, the window aliasing feature can be used 
  552. Xto open a surrogate window that is immune to this action.
  553. X
  554. X   XMODEM Downloading
  555. X
  556. XMacLayers has a download facility for accepting downloaded XMODEM 
  557. XMacTerminal ('macput' command) and macbinary ('macbput' command) files. 
  558. XStraight vanilla XMODEM is not supported. A copy of the public domain 
  559. Xmacbinary downloading program 'macbput' is provided with this package.
  560. X
  561. XOnly one window can be doing a XMODEM download at any one time.
  562. XDownloading does not effect any other MacLayers operations so you can
  563. Xfreely use any other windows or applications (with MultiFinder) while 
  564. Xa download is in progress. Remember though that the topmost window 
  565. Xreceives the highest priority data transfer from the host so for the 
  566. Xfastest downloading keep the XMODEM layer window the active window.
  567. X
  568. XThe File menu "Download Site" can be used to preselect the location
  569. Xwhere downloads are to occur. By default files are placed where the
  570. Xstartup document resides. This setting is forgotten each time the 
  571. XMacLayers application terminates.
  572. X
  573. XIf you have an error-free line then setting the "Fast" mode in the 
  574. XControl menu "File Transfer" selection will speed up download by about
  575. X28%.
  576. X
  577. X  Downloading Examples
  578. X
  579. XThe macbput utility provided with this package can be run on the host
  580. XUnix system and is used to ship files to a Macintosh running MacLayers. 
  581. X(Some Unix systems already have a utility called macput which is used in 
  582. Xexactly the same way. But macbput properly updates Macintosh file dates 
  583. Xconcerning the time of original creation and last use.)
  584. X
  585. XTo download a standard Unix text file, for example one created by a 
  586. Xeditor such as vi or emacs, enter the following command:
  587. X
  588. X          macbput -u filename
  589. X
  590. XThe transfer will start automatically and will create a Macintosh file 
  591. Xof type TEXT on the Macintosh which can be opened by applications such as 
  592. XMacWrite and Word.
  593. X
  594. XOther types of Macintosh files and applications may also be downloaded. 
  595. XOn the host Unix system they may take on one of many forms. If you have 
  596. Xa single file which ends in the name "hqx" then it must first be converted 
  597. Xinto three files with names ending in .info, .data and .rsrc with a 
  598. Xutility such as xbin (not provided.)
  599. X
  600. X    xbin  filename.sit.hqx
  601. X
  602. XIf you have the .info, .data and .rsrc files then you are ready to 
  603. Xdownload with the macbput (or macput) command. Specify only the front 
  604. Xpart of the file name, the part before the .info, .data and .rsrc.
  605. X
  606. X    macbput  filename.sit
  607. X
  608. XThe transfer will start automatically and upon completion a copy of the 
  609. Xfile will be available on the Macintosh.
  610. X
  611. XSometimes the host version of the file will not be in three pieces but
  612. Xinstead exist as a single binary (non-text) file. These are called 
  613. Xmacbinary files and almost always end in the suffix ".bin". Macbinary 
  614. Xfiles may be converted to the three file info, data and rsrc format with 
  615. Xutilities such as "mcvert" (not provided) and then downloaded with macbput
  616. Xas above. It is also possible to directly download a macbinary file if 
  617. Xyou have a so-called XMODEM download utility. (One such utility is 
  618. Xcalled "xmodem".) To accomplish this, issue the download command on the 
  619. Xhost:
  620. X
  621. X    xmodem -sb filename.bin
  622. X
  623. Xand then select the File menu "Download File" item. The download 
  624. Xshould start at that time. But if it doesn't you may have to invert the 
  625. XControl menu "File Transfer ..." CRC/Checksum selection and try again.
  626. XNote that downloading via XMODEM utilities will not auto-start the
  627. Xprocess on the Macintosh. You must use the "Download File" menu item
  628. Xto start the Macintosh side of the operation.
  629. X
  630. X  Paste Speed
  631. X
  632. XUnix is known for the ease with which its tty device drivers can be
  633. Xoverrun by input. (This causes data to be lost.) MacLayers provides
  634. Xtime delay options which can be set for pasting text into a window.
  635. X(Data pasted into a window is sent on to the host.) The options are 
  636. Xin the Control menu "File Transfer" selections.
  637. X
  638. X  Preferences Menu Item
  639. X
  640. XThe Control menu Preferences item provides user selectable options for 
  641. Xhighlighted text format and cursor display among other things.
  642. X
  643. X  Window or Selection Printing
  644. X
  645. XThe entire window or the current selection may be printed by activating
  646. Xthe File menu "Print" entry. If you have an early Macintosh model with 
  647. Xonly 64K of ROM then printing will refuse to work due to Apple's lack of
  648. Xsupport for that machine in the MPW programming environment.
  649. X
  650. X  Vertical Window Scrolling With Keyboard Keys
  651. XYou can scroll the active window up or down via the key sequences given
  652. Xbelow. The second sequence for each option is an alternate provided only 
  653. Xfor keyboards not having arrow keys:
  654. X    COMMAND+UPARROW          scroll back one page
  655. X or COMMAND+"'"
  656. X    COMMAND+DOWNARROW        scroll forward one page
  657. X or COMMAND+'/'
  658. X    COMMAND+OPTION+UPARROW   scroll back one line
  659. X or COMMAND+OPTION+"'"
  660. X    COMMAND+OPTION+DOWNARROW scroll forward one line
  661. X or COMMAND+OPTION+'/'
  662. X    COMMAND+SHIFT+UPARROW    scroll to the top of the file
  663. X or COMMAND+SHIFT+"'"
  664. X    COMMAND+SHIFT+DOWNARROW  scroll to the bottom of the file
  665. X or COMMAND+SHIFT+'/'
  666. X
  667. X  Horizontal Window Movement With Keyboard Keys
  668. X
  669. XMacLayers does not directly support horizontal scrolling of window contents.
  670. XHowever, the entire window can be easily moved right or left with keyboard
  671. Xsequences.  Requesting a movement right or left will bring the opposite 
  672. Xedge of the window into view on the screen. If the opposite edge is 
  673. Xalready in view then the window is moved still further in the indicated 
  674. Xdirection.
  675. XThis capability when used with the vertical scrolling key sequences allows
  676. Xsmall screen Macintosh users to comfortably manipulate windows that are 
  677. Xwider than the screen.
  678. XHere are the key sequences provided. The second sequence for each option 
  679. Xis an alternate provided only for keyboards not having arrow keys:
  680. X    COMMAND+LEFTARROW
  681. X or COMMAND+'<'               move window left
  682. X    COMMAND+RIGHTARROW
  683. X or COMMAND+'<'               move window right
  684. X
  685. X
  686. X  Tandem Scrolling
  687. X
  688. XHolding the shift key down while selecting a vertical line or page
  689. Xscroll with the mouse will automatically cause the same scroll to be
  690. Xattempted on the next lower MacLayers window (if any.) This is handy
  691. Xwhen eyeballing two long similar sections of text for differences.
  692. X
  693. X  Special Keyboard Sequences
  694. X
  695. XFor emacs users MacLayers allows a metakey sequence to cause bit 7 (the
  696. Xhigh bit in a character) to be set. Combining both the command and
  697. Xoption keys with any other key sequence will cause bit 7 to be forced
  698. Xon. Thus, keyboards having a built-in control key can generate all 256
  699. Xpossible 8-bit characters. Macintoshes with old non-ADB keyboards will 
  700. Xignore this treatment for the "'" or "/" characters since they are 
  701. Xrequired for the window scrolling movements indicated earlier.
  702. X
  703. XFor users requiring the generation of ASCII NUL (a zero byte, sometimes
  704. Xcalled the IDLE character) an alternative to CONTROL-@ (also CONTROL-2) 
  705. Xis to issue CONTROL-space (also OPTION-space.) This follows vt-100 
  706. Xterminal convention.
  707. X
  708. X  Find Capabilities
  709. X
  710. XThe Find menu items allow searching windows for specific contents or
  711. Xgoing to the current selection.
  712. X
  713. X  Iconed Window Capability
  714. X
  715. XA unique feature of MacLayers is the ability to shrink a window to an
  716. Xicon. While iconed the window will still actively display its contents
  717. Xand scroll just like a standard sized window.
  718. X
  719. XTo iconize a window simply double-click its title bar or select the
  720. XIconize menu item from the Layers menu. While iconed the window may be
  721. Xmoved around just like a Finder Icon and the miniaturized window retains
  722. Xits own independent location.
  723. X
  724. XA window is deiconized when you double click it, type input to it as the 
  725. Xtop window, select it with a Layers menu item, or select the Deiconize 
  726. XLayers menu item.
  727. X
  728. XJust for fun MacLayers allows you to scroll a iconed window with the
  729. Xvertical scroll keys (defined earlier) without causing it to deiconize.
  730. X
  731. XFor users running under MultiFinder standard windows can be auto-iconed
  732. Xtemporarily while MacLayers is not the front most application. A check
  733. Xbox in the Preferences menu dialog box enables this action. If checked
  734. Xthen holding the shift key down while switching to another application
  735. Xwill temporarily inhibit the auto-iconing.
  736. X
  737. X  Icons to Default Positions
  738. X
  739. XThis menu selection from the Control menu item resets the positions of
  740. Xall iconed windows such that when iconed they appear along the top, right,
  741. Xleft or bottom of the screen. There is also an option for the bottom where
  742. Xonly the titles show. This allows the user to treat the titles of iconed 
  743. Xwindows as though they are buttons at the bottom of the screen. By double
  744. Xclicking the button (which is really the title of the iconed window) 
  745. Xthe window returns to its full size.
  746. X
  747. XThe menu item simply resets the position for all icon windows to the
  748. Xdesignated choice selected in the Preferences dialog. They may then be 
  749. Xmoved again by you to other areas of the screen.
  750. X
  751. X  Shrink Window To Title
  752. X
  753. XAt times the desktop becomes too cluttered so MacLayers provides yet 
  754. Xanother feature to ease the busy desktop problem. Any MacLayers window
  755. Xcan be shrunk to just its title bar by shift-double-clicking the title bar 
  756. Xor selecting the Titleize item from the Layers menu item. In effect the
  757. Xwindow is still there but only the title bar remains visible. The window
  758. Xremains titled even if output is being sent to it. Moving the title bar 
  759. Xhas the same effect as moving the window.
  760. X
  761. XThe window may be detitleized by double-clicking the title bar or selecting 
  762. Xthe Detitleize item from the Layers menu.
  763. X
  764. X  Hide Window Capability
  765. X
  766. XYou may also completely hide any MacLayers window at any time by selecting
  767. Xthe Hide item from the Layers menu. The window will stay hidden until 
  768. Xoutput is sent to it from the host or you reactivate it from the Layers 
  769. Xmenu.
  770. X
  771. X  Cycling Through Windows
  772. X
  773. XAll active MacLayers windows may be displayed one after the other in
  774. Xnumerical order by selecting the Layers menu Cycle item. Hidden windows
  775. Xdo not appear in the cycle list.
  776. X
  777. X  Specifying a Layer Window Title
  778. X
  779. XThe 'layertitle' command provided with this package allows a single
  780. Xargument (which may be a string) to specify a title to be displayed
  781. Xfor the controlling window of the process. The source for this command
  782. Xshould compile and execute on any Unix system and so can be used even for
  783. Xwindows which are logged into remote hosts.
  784. X
  785. XAn example use of this feature is to create your own "cd" directory 
  786. Xchange shell command and have it always display the current directory 
  787. Xname in the title bar.
  788. X
  789. XExpert users can examine the 'layertitle' source code to discover 
  790. Xthe control sequence needed to send the ANSI Private Message string which 
  791. Xactually causes the new title to be recognized. Knowing this sequence 
  792. Xstandard shell echo facilities can be used in place of the 'layersize' 
  793. Xcommand.
  794. X
  795. X  Sending an Interrupt to a Window Process
  796. X
  797. XThe Send Interrupt To Layer item of the Layers menu causes a internal
  798. Xpacket to be sent to the host indicating that a SIGINT signal be sent to 
  799. Xthe UNIX process group attached to the window. This is only available in 
  800. Xlayers mode.
  801. X
  802. XAt times the UNIX tty mode settings for a process may become garbled
  803. Xand if the Enter key is sending DEL or CONTROL-C this may not be enough
  804. Xto interrupt the process. Selecting this menu item bypasses the tty
  805. Xdriver and so ensures that an interrupt signal is received.
  806. X
  807. X  Reset Terminal
  808. X
  809. XOccasionally you may have bad data transmitted to the Macintosh which can
  810. Xcause the vt-100 emulation to enter a special graphics mode or setup
  811. Xa vt-100 screen scrolling area smaller than your full window size. If this 
  812. Xoccurs the Control menu item "Reset Terminal" will reinstate normal 
  813. Xoperation. This in no way affects layers mode operation.
  814. X
  815. X  Sending Break in Layers Mode
  816. X
  817. XA hardware 'break' can be placed on the host serial line with the Control
  818. Xmenu Send Hardware Break item. However, when in layers mode this is only
  819. Xallowed if the line is idle to guarantee that no internal control packets 
  820. Xbecome garbled or lost. A beep occurs when the line is busy.
  821. X
  822. X  Aborting Current Activity
  823. X
  824. XPaste and XMODEM operations may be aborted by entering COMMAND-period
  825. X(cmd-.).
  826. X
  827. X  Use of the Macintosh RAM Cache
  828. X
  829. XFor the last few years versions of the Macintosh operating system have
  830. Xprovided a RAM cache feature configurable in the control panel to speed 
  831. Xup data transfers to floppy and hard disks. There are two types of 
  832. Xenvironments where this option is especially useful with MacLayers.
  833. X
  834. XThe first situation is for users running off of floppy disks. In this case
  835. Xrunning with at least the minimal RAM cache size of 32K will inhibit the 
  836. Xconstant whirring of your diskettes and improve screen text display speed.
  837. X
  838. XUsers using high-speed communication connections (9600 and above) make up 
  839. Xthe second group that may need to run with the RAM cache turned on. This 
  840. Xis necessary to avoid data loss when receiving large amounts of 
  841. Xuninterrupted data. An example of this would be the listing of a large 
  842. Xsource file directly to your window. Once the RAM cache is filled it
  843. Xpurges itself by writing the cached data to an output file. The Macintosh 
  844. Xserial driver can lose high speed data coming in if diskette or hard disk 
  845. Xaccesses are being done at the same time. (This is called data overrun.) 
  846. XUsers with this potential situation need to guarantee that the size of 
  847. Xtheir ram cache is at least as big as the largest amount of data they 
  848. Xwant to capture. (This does not concern XMODEM transfers. They do not 
  849. Xrequire RAM cache although cache of at least minimum size can speed 
  850. Xthese up as well.)
  851. X
  852. X  Disk Full Processing
  853. X
  854. XMacLayers will put up a warning box and delete all data in the scroll 
  855. Xfile up to the current output position if the disk where the file resides 
  856. Xbecomes completely filled.
  857. X
  858. X  Minimal Memory Environment
  859. X
  860. XFor users with extremely tight memory requirements MacLayers can be forced 
  861. Xto run in a memory partition approximately 95k bytes smaller than normal. 
  862. XWhen run in this manner MacLayers will beep at startup and issue a warning 
  863. Xthat only a single window is allowed. No more than one window can be open 
  864. Xat a time and no read-only text windows are available in this mode. Also,
  865. Xthe maximum size of data handled by cut and paste operations is more
  866. Xrestrictive.
  867. X
  868. X  Enhanced Terminal Capabilities
  869. X
  870. XMacLayers supports standard vt-100 terminal protocol as described in BSD
  871. XTermcap(5) and System V Terminfo(4). But there are also two extra
  872. Xcapabilities which can speed up screen updating particularly with screen
  873. Xeditors. UNIX users who specify vt100 terminal type only for the sake
  874. Xof running MacLayers can include these extra capabilities by using the
  875. Xreplacement terminal descriptions below. These not only include the extra 
  876. XMacLayers terminal capabilities but also remove timing waits required 
  877. Xby real vt-100's thus providing even further speed improvements.
  878. X
  879. XFor BSD Termcap the following description can be used:
  880. X
  881. X #                    MacLayers vt-100 Termcap
  882. X d0|vt100|vt100-am|MacLayers dec vt100:\
  883. X    :cr=^M:do=^J:nl=^J:bl=^G:co#80:li#44:cl=\E[;H\E[2J:\
  884. X    :le=^H:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
  885. X    :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
  886. X    :md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:is=\E[1;24r\E[24;1H:\
  887. X    :rf=/usr/lib/tabset/vt100:\
  888. X    :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
  889. X    :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
  890. X    :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:ta=^I:pt:sr=\EM:vt#3:xn:\
  891. X    :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:\
  892. X    :dc=\ED:ic=\EI:
  893. X
  894. XThe System V Terminfo specialized definition is:
  895. X
  896. X #        Special System V Terminfo definition for MacLayers vt100
  897. X vt100|vt100-am|dec vt100 without tabs and with MacLayers extras,
  898. X    am, mir, msgr, xenl, xon, cols#80, lines#24, vt#3,
  899. X    acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  900. X    bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=\r,
  901. X    csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\b,
  902. X    cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
  903. X    cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
  904. X    dch1=\ED, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
  905. X    home=\E[H, ich1=\EI, ind=\n, ka1=\EOq, ka3=\EOs, kb2=\EOr,
  906. X    kbs=\b, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
  907. X    kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx, kf2=\EOQ,
  908. X    kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
  909. X    kf9=\EOw, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E[?1l\E>,
  910. X    rmso=\E[m, rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
  911. X sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
  912. X    sgr0=\E[m^O, smacs=^N, smkx=\E[?1h\E=,
  913. X    smso=\E[1;7m, smul=\E[4m, tbc=\E[3g,
  914. X
  915. X
  916. X
  917. X                                 Hints
  918. X
  919. X *) MacLayers must internally handle your window display differently
  920. X    whenever the cursor is being positioned above the bottom line such
  921. X    as occurs during the execution of a screen editor on the host. The 
  922. X    "vi" symbol is displayed in the grow box during this time to indicate 
  923. X    this special mode. During so-called "vi" mode you are not allowed
  924. X    to change the window size. Holding the shift key down will override
  925. X    this restriction and allow you to resize the window. But remember 
  926. X    that if you are running a utility then the utility may not be able 
  927. X    to dynamically adjust to a new window size. If it can then you must 
  928. X    do whatever is required of the utility to inform it of the change.
  929. X
  930. X    At times MacLayers may think the window is still in "vi" mode even
  931. X    after an editor or cursor controlling utility has finished. One
  932. X    instance of this is immediately after a "clear screen" command.
  933. X    MacLayers does not know to go out of "vi" mode until a new line is
  934. X    added to the very bottom of the screen causing the screen to scroll
  935. X    up a line. If the window has stayed in "vi" mode and you want to 
  936. X    resize it simply hold the shift key down or type empty lines to the 
  937. X    shell until the window begins to scroll again. (The "vi" will then 
  938. X    disappear from the grow box.)
  939. X
  940. X *) When running in layers mode the host/MacLayers interface always
  941. X    uses vt-100 protocol regardless of your TERM terminal type setting.
  942. X    Thus if you only set your TERM variable to vt100 to run MacLayers 
  943. X    and you always run in layers mode then you need not bother actually
  944. X    setting vt100 as your Unix terminal type.
  945. X
  946. X *) As mentioned at the start of this document MacLayers can be used
  947. X    as a normal vt-100 terminal emulator when connected to any host
  948. X    computer. On BSD and System V systems you can also use the variable 
  949. X    sized window feature in non-layers mode by following the same 
  950. X    instructions given for logging into a remote host as described
  951. X    in the "Logging Into A Secondary Host" section above. (This also
  952. X    holds true for a layers host before the layers command is entered.) On 
  953. X    systems other than BSD and System V changing the current window 
  954. X    size may garble output unless there is a means for you to notify 
  955. X    your connection of the new window size.
  956. X
  957. X
  958. X                            Problems/Caveats
  959. X
  960. X *) The current version does not do data validation with packet retry for 
  961. X    MacLayers/host internal communication. Thus poor line conditions may 
  962. X    cause a host internal message to be missed. This is usually not 
  963. X    catastrophic but means something won't work correctly. For instance
  964. X    a window might not auto-close when a host process death occurs or 
  965. X    output might be sent to the wrong window.
  966. X     
  967. X *) The shell TERM variable must have the same value in your 
  968. X    layer shells as it does when you initially start layers up.
  969. X
  970. X *) If you set the BSD shell TERMCAP variable then that variable must
  971. X    be set in your .login file. It may not be changed to something
  972. X    different in .cshrc.
  973. X
  974. X *) The host/MacLayers system attempts to give highest data communication
  975. X    priority to the topmost MacLayers window at all times by throttling
  976. X    down output to other windows. However due to internal UNIX kernel I/O 
  977. X    buffering the attempts may not always succeed.
  978. X
  979. X *) The "Download Site" folder is always kept open which means if you 
  980. X    want to trash the folder you must first choose a new download site or 
  981. X    quit MacLayers.
  982. X
  983. X *) MacLayers has U.S. keyboard dependencies.
  984. X
  985. X *) The layers command will not properly work when being issued from a 
  986. X    remote login into the same machine which is already running the initial
  987. X    layers startup command.
  988. X
  989. X *) If a layers window text file is read as a file of type TEXT by another
  990. X    application and that file has highlighted characters (as sent by the
  991. X    host) embedded within it then those characters will appear as garbage 
  992. X    in that application. (Specifically such characters have the high bit
  993. X    [bit 7] on.)
  994. X
  995. X
  996. X                                 Bugs
  997. X
  998. X *) Occasionally during or after a cursor moving utility has executed if 
  999. X    the window is scrolled backwards then when it is eventually scrolled 
  1000. X    forward to the bottom (last) line of the file the bottom line will 
  1001. X    be missing from the display. If you can reproduce this problem then 
  1002. X    please send a complete description of how to do so to 
  1003. X
  1004. X             uunet!rascal.ics.utexas.edu!layers-reply
  1005. X
  1006. X
  1007. X
  1008. X                         Acknowledgement
  1009. X
  1010. X  The author owes a big thanks to Werner Uhrig and his band of testers at the
  1011. X  University of Texas for the many bug reports and suggestions delivered 
  1012. X  during the intensive beta testing phase of this product. MacLayers is a 
  1013. X  substantially improved application as a result.
  1014. X
  1015. X                                                Dave Trissel
  1016. X                                                Austin
  1017. X    
  1018. X    
  1019. X
  1020. XUNIX(TM) is a registered trademark of American Telephone and Telegraph.
  1021. X
  1022. XMacintosh is a trademark of McIntosh Laboratories and is licensed to Apple 
  1023. XComputer.
  1024. X
  1025. X                     **** end of document ****
  1026. SHAR_EOF
  1027. if test 30876 -ne "`wc -c < 'MacLayers.doc'`"
  1028. then
  1029.     echo shar: error transmitting "'MacLayers.doc'" '(should have been 30876 characters)'
  1030. fi
  1031. fi # end of overwriting check
  1032. #    End of shell archive
  1033. exit 0
  1034. --- end of part 1 ---
  1035.  
  1036.  
  1037.