home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / desktop / cliguard_1 / !CLIGuard / !Help < prev    next >
Text File  |  1995-01-02  |  19KB  |  355 lines

  1. CLI Guardian version 1.10
  2. © Sam Kington 27th December 1994
  3. This program is freeware, *not* public domain – i.e., I retain copyright (see
  4. “Boring legal message”)
  5.  
  6. Existing users: see the file “Changes” for a list of changes since version
  7. 1.00. There’s quite a lot; I hope you like it ;).
  8.  
  9. Terminology note
  10. ****************
  11.  
  12.    What the hell is the CLI, you may ask? And what do I mean by “CLI”?
  13.       • “CLI” stands for Command Line Interface.
  14.       • The CLI, under RISC OS, is the prompt you get for typing in “*
  15.         commands” like *Modules, *Help Commands, *Set File$Type_FFF etc.
  16.    You can get to the CLI in two ways:
  17.       • By “shelling out” to the CLI – i.e. pressing F12.
  18.       • By using a task window – i.e. pressing Ctrl-F12
  19.    But I will mostly describe the “CLI” as the F12 version – or rather,
  20. whenever there are pejorative connotations, it’s the non-multi-tasking
  21. version ;).
  22.    I will occasionally describe *commands as ‘commands’ – I mean the same
  23. thing.
  24.  
  25. What this program does
  26. **********************
  27.  
  28.    CLI Guardian, as its name suggests, provides a way of avoiding shelling
  29. out to the CLI, by making three important aspects of RISC OS
  30. desktop-friendly: module handling, help handling, and *commands. It provides
  31. a list of modules, that you can look at and sort in different ways, as well
  32. as doing various things to (killing them, re-initialising them, loading them
  33. into RAM etc.) – hopefully, anything you would do with modules that you had
  34. to use the CLI before, you can do with CLI Guardian. It also allows you to
  35. view help strings, either from *Help or from BASIC, in a window, and to move,
  36. in a pseudo-hypertext fashion, between references (for *Help only, NB). (If
  37. you’re not sure what I mean by this, see later on in this file). Finally, you
  38. can enter *commands, and either run them in a Task Window or view the output
  39. in one of CLI Guardian’s viewers, and you can have other tasks like Director
  40. ask CLI Guardian to run a command as well.
  41.  
  42.    When you run CLI Guardian, it puts an icon on the icon bar, and starts
  43. building its list of modules. The machine will multitask, but will run a bit
  44. slower, until it finishes doing all this. This is only really noticeable if
  45. you’re typing away or dragging things or that sort of thing; certainly, in a
  46. boot sequence you won’t notice it.
  47.  
  48.    The program supports interactive help, so this documentation will only
  49. cover the various aspects of the program that don’t fit in a small Help
  50. message.
  51.  
  52. Modules
  53. *******
  54.  
  55.    Clicking on CLI Guardian’s icon will open a list of modules to the left of
  56. the screen. By default it will be a simple list of modules, in the standard
  57. system order (i.e. ROM modules first, then RAM modules in the order they were
  58. loaded), called in this program “sort by number”. Clicking on any of the
  59. modules will bring up a window with the various help options provided by the
  60. module; clicking on those will bring up the appropriate help message (see
  61. below). The window will also include any SWIs the module provides, but this
  62. is purely for information – it is exceedingly unlikely that there will be any
  63. help available on them.
  64.    Unavailable modules (i.e. unplugged or dormant ROM modules) will be
  65. displayed in grey or in italics, depending on whether you are using the
  66. system font or not (see “Choices”).
  67.  
  68.    Clicking MENU on the Modules window will bring up the main menu, where you
  69. can set the display options, perform the standard operations on modules, save
  70. the module to disc, change the choices (colours, fonts, mouse clicks, mouse
  71. drags), save a copy of the window to disc and rescan the modules if they get
  72. out of synch.
  73.  
  74.    CLI Guardian knows several things about any particular module: its
  75. “official” name (e.g. “ColourTrans”), its “friendly” name (e.g. “Colour
  76. Selector”), its version number (e.g. 1.07 (15 Apr 1992), its status (e.g.
  77. “ROM (active)”), its size, and possibly a “special” field (usually a copyright
  78. notice). You can see these in the Info box off the “Module” submenu, or by
  79. using interactive help on the Modules window.
  80.  
  81.    You can choose to display them in various combinations in the module
  82. window, by using the “Display” submenu, so you could have a sparse display of
  83. just official module names, or a big massive display with friendly name,
  84. size, status, version number and special field. The only limitation is that
  85. they must be in the order “name - size - status - version - special”, and
  86. that you can’t have both sorts of names at the same time – mainly because
  87. they’re often not very different at all. I don’t think this is too much of a
  88. problem, but if you *are* seriously miffed by this, please tell me.
  89.  
  90.    Please note that the size of a module is just the size the code takes in
  91. the module area; it may also have workspace in the module area, the system
  92. area, the sprite area or elsewhere, which may often be quite extensive (the
  93. Window Manager usually uses 100K of workspace, and tracker modules also use
  94. massive amounts).
  95.  
  96.    You can also sort the modules in various ways: sort by name (alphabetical
  97. sort, using the official name), sort by number (standard sort, ROM modules
  98. first then RAM modules in the order they were loaded), sort by date, sort
  99. by size and sort by version number.
  100.  
  101.    CLI Guardian will find a list of modules quite quickly, but finding out the
  102. friendly name, version etc. and sorting the modules takes longer, which is
  103. why it will do this in the background. This lets you get at the machine
  104. quicker, but it has the side-effect that, if you are quick enough, you will
  105. see that some of the options are temporarily unavailable (greyed out). Also,
  106. if you have chosen to sort the modules by version (for instance), they will
  107. be displayed sorted by number for quite a while, until CLI Guardian finishes
  108. sorting them by version number. This happens when you first start CLI
  109. Guardian, or when you rescan the modules. For this reason, you are
  110. recommended to put CLI Guardian in your Boot sequence, near the end, so it
  111. can work away when you first start up your machine and be ready when you want
  112. to use it. The speed loss, when the machine is grinding away loading things
  113. anyway, is not particularly noticeable.
  114.  
  115.    (Note: rescanning will also delete any current windows and give away any
  116. claimed memory. So, if CLI Guardian grabs all the available memory – this can
  117. happen sometimes with strange modules – choose “rescan”.)
  118.  
  119. Help
  120. ****
  121.  
  122.    As mentioned above, clicking SELECT (by default) on the Modules window
  123. will find all the help options supplied by the module – help on commands,
  124. configuration options, or other miscellaneous help – and display them in a
  125. window. Clicking on any of these options will in turn bring up a window with
  126. the corresponding help text; clicking in that will try and find help using the
  127. words in the line of text clicked on, and so on ad infinitum (or rather, until
  128. you reach the limit of 16 windows). As mentioned previously, you are unlikely
  129. to find any help on SWIs.
  130.  
  131.    What is actually happening, is that when you click on a line of text, CLI
  132. Guardian passes the line to *Help, and displays the result – even if the
  133. actual line wasn’t *intended* to be clicked on like that. For instance, if
  134. you click on “UtilityModule” (or “MOS Utilities” if you have chosen “Show
  135. friendly name”), a rather large window will appear with a list of keywords,
  136. divided into two sections, “Commands” and “Help only”. This is nothing more
  137. than a nicer form of what you would get if you typed *Help UtilityModule from
  138. the command line (although sometimes there may be slight differences – CLI
  139. Guardian is sometimes more robust with badly-written modules). However, if
  140. you clicked on “Configure”, another window would appear, with the heading
  141. “Help on keyword Configure” and a list of Configure keywords provided by
  142. modules. If you go down to the keywords provided by “Territory Mgr”, which
  143. should be something like “Territory   DST   NODST  TimeZone”, and click on
  144. that line, you will get a further window with four sections, “Help on keyword
  145. Territory”, “Help on keyword DST”, etc., with the appropriate help text.
  146.  
  147.    If you click on a heading, CLI Guardian will get help on all the lines
  148. between the heading and the next heading (or the end of the page if there
  149. isn’t one). This works quite well for the first window you get, where the
  150. *Commands are lined up neatly under the heading “Commands”, but is rather
  151. more messy in other, unformatted windows. In particular, if the word
  152. “Commands” features anywhere between the heading and the next one, then you
  153. will get the output of *Help Commands – which is quite long :(.
  154.  
  155.    To sum up: What you have here is a (rudimentary) form of hypertext. The
  156. best way to find out what you can do with it is to experiment.
  157.  
  158.    Clicking MENU on any window other than the Modules window will bring up a
  159. smaller window, with three options, “Help”, “Command” and “Save”. The first
  160. two are equivalent to clicking Select or Adjust on the window; the third
  161. brings up a Save box where you can save the contents of the windows to a file
  162. or an application.
  163.  
  164.    Choosing “Help...” from the icon bar menu will bring up a small dialogue
  165. box where you can enter Help keywords; clicking “OK” will bring up a Help
  166. window in the usual manner. Note that you can also get help on BASIC keywords
  167. with this window (but *not* by clicking in a viewer window), by selecting
  168. “BASIC” rather than “RISC OS”. By default, Shift-Select-clicking on the icon
  169. bar icon will bring up the default Help window (i.e. with “RISC OS”
  170. selected), and Shift-Adjust will bring up the Help window with “BASIC”
  171. selected. This is purely for convenience, of course: you can still change
  172. mode by clicking on the icons as usual.
  173.  
  174. Commands
  175. ********
  176.  
  177.    Adjust-clicking (by default) on a viewer window (that is, any window other
  178. than the Modules window) or the icon bar will bring up a dialogue box where
  179. you can enter a * command. The window has three main parts: the “Command”
  180. writable field, where you would enter the name of the actual command, four
  181. writable fields in the “Arguments” section, where you can enter various
  182. arguments of the command, and a set of icons.
  183.  
  184.    Note that CLI Guardian separates the “command” and “argument” parts of the
  185. *command string purely for clarity: for all intents and purposes, the command
  186. string still behaves as one long string, rather than up to five different bits
  187. of one. It’s difficult to describe here, so I won’t; it’s easiest to try it
  188. out and see for yourself. Note however that CLI Guardian assumes arguments
  189. are separated by spaces; this should be OK apart from a few old commands that
  190. still accept commas, but falls down when you include spaces within an
  191. argument. If this annoys you, sorry.
  192.  
  193.    Pressing F1 will toggle between the current command and the previous
  194. command – which is useful if you want to do the same command again, or a very
  195. similar one, and don’t want to re-type it. If that isn’t enough (it usually
  196. isn’t), then pressing F2 will show a command history in a CLI Guardian
  197. viewer. Or rather, it will if you have Olly Betts’ Line Editor running (and
  198. if you don’t, you should). Alternatively, you can *Type a file which contains
  199. your favourite commands, and use that as a history (there's a file called
  200. “History” in the CLI Guardian directory, which will be viewed if LineEditor
  201. isn’t running).
  202.  
  203.    CLI Guardian will also accept commands from other tasks: running the
  204. command CLIGuardCommand <command text> will do the job. There’s an example
  205. Menu file for Director in the CLI Guardian directory to show you how it
  206. works.
  207.  
  208.    If you drag a file to the Commands window, the full file-name will be
  209. inserted at the end of the command (i.e. in the last argument field).
  210. Additionally, the “Help” button will provide help on the command (if there
  211. isn’t any help, you might not have typed it correctly); if the command is
  212. “Set”, “SetEval”, “SetMacro” or “Configure”, the “Value” button will show you
  213. the current value of the variable or the configure option you are about to
  214. change. “OK” and “Cancel” perform the expected actions: “Cancel” stops the
  215. whole thing, and “OK” runs the command, with the output going in a standard
  216. CLI Guardian window. The only exception is for “dangerous” commands: things
  217. like *Basic or *Debug that take over the machine, or things like *Map that
  218. take a long time – in other words commands that don’t return almost
  219. instantaneously or depend on updating the screen regularly. These will either
  220. be run as a separate task, or run in a Task Window.
  221.  
  222.    Finally, if you Adjust-click on a configuration option in one of CLI
  223. Guardian’s viewers, CLI Guardian will insert the command “Configure <option>”,
  224. where <option> should be replaced by the name of the option, so “Configure”
  225. would be in the command field and “<option>” in the first of the argument
  226. fields.
  227.  
  228.    Choosing “Command...” from the icon bar menu will also bring up the
  229. window.
  230.  
  231. Choices
  232. *******
  233.  
  234.    There are various ways you can customise CLI Guardian, notably by choosing
  235. how it displays modules (see “Modules” for more details). Other choices can
  236. be set with the “Choices” submenu: colours, fonts, mouse actions and mouse
  237. drags.
  238.  
  239.    CLI Guardian uses three styles in its windows: normal style, heading style
  240. and unavailable style. The normal style is applied to most text, the heading
  241. style to things like “Commands” or “Help on keyword Configure”, the
  242. unavailable style to modules like “BBC Econet” or “Joystick” if you don’t
  243. have the appropriate hardware. How these styles behave depends on whether you
  244. are using outline fonts or not. If you are using the system font, CLI
  245. Guardian uses colours to distinguish between styles (by default, red for
  246. headings and grey for unavailable modules). If you are using outline fonts,
  247. CLI Guardian won’t use colours; partly because non-anti-aliased fonts look
  248. ugly, and mainly because it’s a pain to do properly.
  249.  
  250.    The default fonts are Trinity.Medium for normal text,
  251. Trinity.Medium.Italic for unavailable text, and Homerton.Bold for headings.
  252. You can’t change the size because a) it would look silly, and b) it’s much
  253. easier to assume a font is a certain size. 12 point is about the same size as
  254. the System font, and as the point size of a font is a measure of its height
  255. (more or less), the lines should be spaced out correctly (well, they are on
  256. my machine, will all the fonts I’ve tried). You might get lines spilling over
  257. the edge of the window, but I suspect that would be with strange fonts like
  258. “FancyDress”. Obviously, Dingbats, MathGreek or other symbol fonts will look
  259. rather silly...
  260.  
  261.    You can also change the action of various mouse clicks, assigning mouse
  262. clicks to mouse actions, by choosing “Mouse clicks...” from the “Choices”
  263. submenu; a window will appear, with the available commands and the
  264. corresponding mouse click. For instance, if you click on the icon bar icon,
  265. you can open the Modules window, enter a Help keyword, or enter a * command;
  266. clicking on a window can search for help on the chosen line, use that line as
  267. a command, bring up a save box or close the window. Obviously, with several
  268. commands available and only two mouse buttons, you have to use Shift, Ctrl or
  269. maybe even Alt if you want to be able to do all these things with the mouse,
  270. so you can choose which ones are the most important to you.
  271.  
  272.    You can save these choices, cancel changes, and revert to default settings
  273. with the menu.
  274.  
  275.    Finally, you can also tell CLI Guardian to run certain commands when files
  276. of a given type are dragged to the icon. You can do this by editing the
  277. “FileDrags” file within the CLI Guardian window (there are menu options to do
  278. this), which contains lines like the following:
  279.       SetMacro CLIGuard$RunType_FF9 IconSprites <CLIGuard$File>
  280.       SetMacro CLIGuard$RunType_1000 Filer_OpenDir <CLIGuard$File>
  281.    To set the options, CLI Guardian runs the file as an Obey file, setting the
  282. special variables, similar to Alias$@RunType_xxx variables.
  283.    The variable “CLIGuard$File” contains the full name of the file dragged to
  284. the icon; “FF9” or “1000” are the numerical values of the appropriate filetype
  285. (1000 for a directory, 2000 for an application). Choosing “Edit drag files”
  286. from the Choices window will load the file into a text editor, where you can
  287. edit and save the new file; choosing “Reload drag files” will run the file,
  288. setting the appropriate system variables.
  289.  
  290. Boring legal message
  291. ********************
  292.  
  293.    This application is freeware, that is, it can be distributed freely as
  294. long as only reasonable charges are made for media and distribution. I retain
  295. copyright on all program code and documentation.
  296.  
  297.    This software is supplied “as is”: I make no warranty, expressed or
  298. implied, of the merchantability of this software or its fitness for any
  299. particular purpose. In no circumstances shall I be liable for any damage,
  300. loss of profits, or any indirect or consequential loss arising out of the use
  301. of this software or inability to use this software, even if I have been
  302. advised of the possibility of such loss.
  303.  
  304.    In other words, if your computer crashes, blows up, you lose all your work
  305. etc. all because of CLI Guardian (unlikely I know), don’t blame me.
  306.  
  307. About all these strange foreign characters in this file
  308. *******************************************************
  309.  
  310.    OK, so if you’re reading this on a PC or a Mac or another strange machine
  311. like that, you may be wondering what all these strange ae things are. Well,
  312. they’re quotes (sorry, there was another one), dashes, ligatures, etc.
  313. Honest. But not on all machines...
  314.    Basically, character sets are only standard up to character 127, which is
  315. basically alphanumerics and a few standard punctuation marks. Foreign
  316. characters, typographical oddities like quotes and ligatures, and other more
  317. obscure symbols are “non-standard”, and each computer often has its own idea
  318. of where they should go in the character set. So don’t worry: even if it’s
  319. hard to read on your current machine, it won’t be on an Acorn machine. It may
  320. look slightly strange if you’re using the System font, however.
  321.    But why am I using these strange characters in the first place? Well,
  322. they’re in the character set and they look nice in an outine font, and I’ve
  323. written a program called Smart Quotes (sorry for the plug) that substitutes
  324. these sort of characters automatically, and I’ve got it turned on at the
  325. moment...
  326.  
  327. How to contact me
  328. *****************
  329.  
  330. All bug-reports, suggestions, comments or indeed any feedback at all will be
  331. welcomed. Here’s how to get to me:
  332.  
  333. E-mail     : 926286ki@udcf.gla.ac.uk during term-time
  334.              These should be OK until June 1996
  335.              I (probably) won’t be at Glasgow during the holidays, but mail
  336.              will be automatically forwarded to wombat@altern.com, which is
  337.              my French email address.
  338.  
  339. Snail-mail : My term-time address, at least until June 1995, is:
  340.              Sam Kington
  341.              Flat 2/1
  342.              44 Hotspur Street
  343.              Glasgow G20 8NL
  344.              SCOTLAND
  345.              
  346.              Again, a backup is the home address – anything that goes here will get
  347.              to me eventually.
  348.              Sam Kington
  349.              Merlhiot
  350.              24420 Savignac les Eglises
  351.              FRANCE
  352.  
  353. Term-time is October to June, with bits off at Christmas (3 weeks) and
  354. Easter (4 weeks).
  355.