home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff224.lzh / CLImax / CLImax.readme < prev    next >
Text File  |  1989-06-20  |  10KB  |  188 lines

  1.  
  2.                                   CLIMAX
  3.  
  4. Have you ever wished your CLI window had 25 lines of 80 characters, just like
  5. a good old fashioned non-windowing computer?  The answer is here: CLImax by
  6. Paul Kienitz.  It creates a custom screen with a borderless backdrop CLI
  7. window.  The CLI will be a Shell if you have the Shell-Seg resident.  I find
  8. it very useful, but it has some idiosyncrasies that you should be aware of:
  9.  
  10. In order to use CLImax, YOU MUST BE USING CONMAN.  (As of now (3/89) the
  11. newest ConMan is on Fish disk 165.)  Furthermore, the Run program, and
  12. preferably the Execute program, must be available in your C: directory. 
  13. (Execute may be in your resident list instead, but the goddamn DOS Execute()
  14. function, which I'm still using in this version (though I despise it) doesn't
  15. have the sense to look for Run on the resident list.)
  16.  
  17. To end CLImax and erase the screen, just use EndCLI as usual.  Unfortunately,
  18. IT DOES NOT WAIT FOR OTHER OUTPUT TO THE WINDOW TO STOP.  This is apparently
  19. a ConMan shortcoming.  So don't EndCLI while other output is going to the
  20. window from some Run'ed program, or you'll seek enlightenment from the Guru.
  21. (Speaking of the Guru, I've noticed that GOMF 1.0 likes to nuke the CLImax
  22. screen for no good reason.  I don't know about newer commercial versions of
  23. GOMF.)
  24.  
  25. UNFORTUNATELY, you can't just say "climax" in CLI like you would say
  26. "newcli".  This version is primarily intended for running from Workbench or
  27. your startup sequence, and it needs to be RunBack'ed.  AmigaDOS 1.3 users can
  28. use "run > nil: climax".  ARP users can ARun it.  (I suppose you could WBRun
  29. it.)  In the future, I'll probably come up with a version that doesn't have
  30. to wait for the CLI to end.  That would also use about 10K less memory.
  31.  
  32. Command-line/ToolType options:  So far there are three.  Each consists of
  33. just a single letter.  From CLI, put the letter(s) after the word CLImax;
  34. from Workbench, you can use the Info menu option to modify the ToolType
  35. OPTION= which is followed by any or all of these three letters.  The letters
  36. can be either case with anything in between.  The word OPTION must be
  37. uppercase with no space before the equal sign.
  38.  
  39. If you say "OPTION= I" or "Run > nil: CLImax I" you get an interlaced screen
  40. with fifty lines.  You might want to go "setfont topaz 11 window" in the
  41. interlaced CLImax, to give you 36 lines with better readability.  Of course,
  42. European users get 32 lines without interlace anyway, or 46 in interlace with
  43. topaz 11.
  44.  
  45. The second option, "OPTION= G", causes the colors to change to black text on
  46. a greenish background, a good combination for interlaced text.  Ordinarily it
  47. uses the same colors as the Workbench screen.  Maybe someday I'll add RGB
  48. options, but for now if you want different colors you'll have to either use a
  49. Palette type program or recompile CLImax with new values.
  50.  
  51. The other option is "V" (for Vanilla; I want to save "C" to mean "color"). 
  52. The V option makes it ignore the Shell-Startup script and use CLI-Startup. 
  53. By default, it attempts to start up by executing s:Shell-Startup whether
  54. it's a Shell or not.  (If you don't use the Shell, this can be a special
  55. script that makes your CLI non-vanilla some other way; it will affect
  56. NewShell and the Workbench Shell icon too.  If you're a 1.2 user, Shell-
  57. Startup will be for CLImax only.)  If it can't find Shell-Startup, or if you
  58. use the V option, it tries s:CLI-Startup.  If it actually is a Shell, it
  59. will still look like a vanilla CLI in most ways.  In this it is like the
  60. Workbench CLI program, which it does indeed resemble closely in its internal
  61. workings.  In fact, even NewCLI will actually produce a shell if the Shell-
  62. Seg is resident.
  63.  
  64. CLImax will give a usage summary instead of running if a question mark or
  65. letter H appears in the CLI command argument line.
  66.  
  67. In the upper right corner of the screen you'll see parts of the two screen
  68. depth gadgets.  The screen is actually four lines overscanned vertically, and
  69. so (though you can't see it) there is a piece of screen title bar above the
  70. top of the window, which you can use to slide the screen vertically, or to
  71. click the depth gadgets which are partially uncovered.  I know it sounds
  72. unaesthetic, but it's not really so bad.
  73.  
  74. Many of the programs you run will create windows and stuff on the Workbench
  75. screen, and will seem to be doing nothing if you just look at the CLImax
  76. screen.  One program that is very useful with CLImax for switching screens is
  77. wKeys by Davide Cervone, available on Fish disk 128.  Or you might prefer
  78. Matt Dillon's DMouse.  Personally, I use a modified DMouse with wKeys-like
  79. screen flipping features, and a couple of other improvements.  If anybody
  80. wants a copy of this DMouse I can give you one, but I'm not mass-
  81. distributing it because Matt Dillon doesn't like it.  Anyway, it's out of
  82. date relative to Matt's latest version, which I haven't got yet.
  83.  
  84. It's possible that if you have CLImax and LoadWB both in your startup-
  85. sequence that you might end up facing an inactive CLImax window which
  86. ignores your typing because the workbench backdrop activated the moment the
  87. initial CLI window vanished.  Try readjusting positions of these things in
  88. startup-sequence; especially try putting CLImax at the very end.
  89.  
  90. One command you might want to put in your Shell-Startup if you use either the
  91. Shell icon or CLImax from the Workbench is CD "" (that is, change directory
  92. to the empty string in quotes).  What this does is correctly set the string
  93. that tells what your current directory is, for the prompt (if you use %s in
  94. the prompt string).  If you don't do this it will show SYS: instead of a real
  95. name.  This will cost a bit of extra disk access.  CLImax when run from
  96. Workbench CD's to wherever SYS: is currently assigned.
  97.  
  98. Future plans/hopes:  1) Eliminate need for Run(back) command from CLI.  This
  99. shouldn't be too far away.  Eliminate dependency on ConMan, I hope, which
  100. should also make it wait properly for other window output when ending. 
  101. Options for RGB colors, startup command, etc, and tooltype for startup CD. 
  102. Someday, no need for Run program, or Execute (present version) or NewShell
  103. (near future version).  This would make it dependent on the Global Vector,
  104. probably.  Maybe option to use Execute() if the GV changes on me.
  105.  
  106. CLImax is in the public domain.  Feedback is appreciated.  If you want to,
  107. you can consider this to be $hareware, especially if you want to see an
  108. improved version any time soon.  (My personal policy is (when I can) to treat
  109. all software, from PD to copy-protected, as if it were shareware.)
  110.  
  111.                     Paul Kienitz
  112.                     6430 San Pablo ave.
  113.                     Oakland, CA, 94608
  114.                     USA
  115.  
  116.                 E-mail: none
  117.  
  118.  
  119. REVISION HISTORY:
  120.  
  121. First version thrown together 11/27/88.  It has I option.  It works, but it
  122. sucks.  Like, "please insert" requesters appear back on the workbench screen,
  123. starting from workbench leaves it with no command path and a null current
  124. directory, and you have to RunBack it.
  125.  
  126. Next day: made the new screen a WBENCHSCREEN.  This makes NewCLI and request-
  127. ers etc. appear on the screen they were provoked from.  I have no idea if
  128. this is kosher or not, so I'll just try it for a while and see if anything
  129. breaks.
  130.  
  131. 1/16/89: Made it a custom screen again; made error requesters appear on new
  132. screen with pr_WindowPtr.  Much less trouble with programs that use
  133. CloseWorkBench() to have only one wbenchscreen.  Now I want a way to NewCLI
  134. onto this screen.  (Hey, ConMan 1.3 solves this; use CON:S*/n/n/...)  And
  135. some programs still put up requesters specifically on the workbench screen. 
  136. Made it use different default colors for interlace (no choice).
  137.  
  138. 2/13/89: Workaround for ConMan 1.3 change, which I thought at the time was a
  139. bug, (no CloseWindow before CloseScreen) and support for Eurousers by
  140. checking IntuitionBase->MaxDisplayHeight.  New code for using NewShell and
  141. letting the CLI clean up the screen itself somehow is partly written but
  142. #if'd out.
  143. ******* Woops, the workaround is not good with the old ConMan.
  144.  
  145. 2/24/89:  I found out how the CLI (aka Shell) program manages to set current
  146. dir etc. from workbench.  It appends a phony struct CommandLineInterface
  147. onto its own struct Process!  Then it just goes
  148.     Execute("execute s:CLI-startup", con, 0);       (or Shell-startup)
  149. same as I've been doing.  It does not set pr_TaskNum.  I was amazed to find
  150. how it sets the path; the Workbench has a struct CommandLineInterface too!
  151. (The path is in cli_CommandDir.)  It tests whether the startup script exists
  152. before trying to execute it (I hadn't), and if not, goes Execute("", con, 0).
  153. New version incorporates the features mentioned above, which considerably
  154. increases the complexity of the program.
  155.  
  156. Next day, handled CloseWindow in a way compatible with either kind of ConMan;
  157. scan screen's window list first.  (Bill Hawes says you're supposed to let
  158. ConMan close the window, and if anything the older ConMan was the one with
  159. the bug.)  Gaaah!  Some days, it loses 56 bytes every time it's run from
  160. Workbench!  Or does it?
  161.  
  162. 3/12/89:  Added V option and usage summary.  Wrote doc file not long ago.
  163.  
  164. 3/16/89:  Added G option.  Changing spew() from a macro to a function saved
  165. 650 bytes!  Preparing for imminent public release...
  166.  
  167. 3/26/89:  Still not released.  Added OPTION=V/I/G tooltype.
  168.  
  169. ~ 5/20/89 ?!  why did I take this long to get it out the door?
  170.  
  171. I've been trying to disassemble NewShell and EndCLI in order to see how to do
  172. CLImax better...  This involved disassembling chunks of kickstart in order to
  173. understand Global Vector calls...  I can tell you this much so far:  The BCPL
  174. compiler produces TRULY BAD CODE.  The only reason BCPL programs come out
  175. smaller than equivalent C programs is that they have all kinds of library
  176. stuff available in the Kickstart that the rest of us never get to use.  HEY
  177. YOUSE GUYS AT COMMODE-AMIGA -- put something in the Dos library so we can use
  178. some of those useful GV entries like #121 (call a loaded program as a
  179. subroutine in a CLI environment) and #78 (parse CLI argument line according
  180. to a template string, I think) and #33 (the core of NewCLI) and whatever else
  181. is useful in there that I haven't found yet!  And by the way, the whole idea
  182. of the GV is way dumb...  an Exec library could do the same job better.  At
  183. least half the lameness of the BCPL shit is not the language but the compiler
  184. implementation.  
  185.  
  186. (°¿°) <- Official Seal of Dorkiness certifies that CLImax was written
  187. without the use of ROM Kernel Manuals.
  188.