home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / x.lbr / XOX.HZP / XOX.HLP
Encoding:
Text File  |  1991-11-18  |  16.8 KB  |  430 lines

  1. ;
  2.                                     XOX.COM                                   
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  5.               12k (93)   C026  1.0k       Rob Friefeld 2/91        Z3COM17
  6.  
  7.   1- Syntax  2- Installation  3- Operation  4- Datespecs  5- Examples of Use  
  8.  
  9.    XOX is a versatile text file viewer with additional functions for abstract-
  10. ing and merging files.   Its strengths are its smooth display, its very strong
  11. datestamp support, and the additional I/O features included:   it is very easy
  12. to send parts of the file on view to the printer or to other disk files, or to
  13. combine a list of small files for easier viewing.  XOX does not compress files
  14. or access libraries.
  15.  
  16.    XOX is a  follow-on to  VIEW,  originally released in 1983.   It runs under
  17. ZCPR3.3 and Z3PLUS and requires an extended TCAP supporting insert/delete line
  18. functions.   Cursor on/off support is  also very nice.   XOX is assembled with
  19. VLIB4D and associated NZTCAPD.
  20. :1
  21.  Syntax    XOX [dir:]afn     ...or,
  22.            XOX [dir:][afn] [/][options][<, =, or >dd.mm.yy time]
  23.  
  24.    The file specification is automatically wildcarded.   If there is more than
  25. one match,  a file list is displayed.   Move the cursor to the one you want to
  26. start with, or just  press <RET> to read the first item.   Non-text file types
  27. (e.g. COM, LBR)  are  ignored.   The  Datespec command line,  discussed below,
  28. provides further control over selection and sorting of the file list.
  29.  
  30.    Once XOX is running, press "?" or "/" to see a command summary.
  31.  
  32.  
  33.    TECHNICAL NOTE: 
  34.  
  35.    XOX reads and writes files without any filtering.   Therefore,  WordStar or
  36. other specially formatted files may be read and  WRITTEN  without  corruption.
  37. XOX does require that each line be terminated  by a  CR  at least  (except the
  38. very last line). LF's, if present, are ignored.  Files with lines separated by
  39. LF's only will not be displayed or printed properly.
  40.  Available Functions 
  41.  
  42.    Here is a list of  XOX  functions,  most of which are described below.  You
  43. can assign them to keys you find convenient.
  44.  
  45.  
  46. MOVING THROUGH TEXT
  47.  
  48.   End of File                Start of File           Find
  49.   Next Screen                Previous Screen         Repeat Find
  50.   Next Line                  Previous Line
  51.   Scan Forward               Scan Backward
  52.   Hop 10 Lines Forward       Set Horizontal Scroll
  53.  
  54.   Set Place Marker           Go to Page or Line #
  55.   Go to Next Marker          Go to Marker #
  56.   Clear Markers
  57.  
  58.  
  59. FILE INPUT/OUTPUT          BLOCK OPERATIONS
  60.  
  61.   Read More of File          Set Block Marker         Go to Block
  62.   Merge File                 Print Block
  63.   Log New Files              Delete Block
  64.   File Ring                  Write Block
  65.                              Repeat Write Block
  66.                              Cursor - Block Operation
  67.  
  68. MISCELLANEOUS
  69.  
  70.   Delete Top Line            Initialize Printer
  71.   Clear <chr> Lines          Type to Printer   
  72.   Display Ctrl Chars         Exit XOX
  73.   Show File Size
  74. :2
  75.  Installation 
  76.  
  77.    Since XOX is  not  an  editor,  there is no  need  to  use  control keys as
  78. commands.   It is highly recommended to use single alpha keys.   For those who
  79. prefer a more complex command structure, perhaps to reduce learning time,  XOX
  80. will accept 2 different meta-keys, e.g. ^K and ^Q.
  81.  
  82.    XOXINST is  a screen-oriented installation program for patching the control
  83. key set and various default initial states.  
  84. :3
  85.                            MOVING THROUGH TEXT 
  86.  
  87.    As distributed, XOX uses a  functionally simple but not mnemonic layout for
  88. most basic commands.   You don't have to move your fingers from the home row.
  89.  
  90.                LEFT HAND                           RIGHT HAND
  91.  
  92.       F  Next screen (also CR)            J  Previous screen.
  93.       D  Next line.                       K  Previous line.
  94.       S  Scroll forward until key press.  L  Reverse scroll.
  95.       A  End of text.                     ;  Start of text.
  96.       G  Find a string.                   H  Repeat find.
  97.  
  98.       THUMB <SP>  Hop forward 10 lines
  99.  
  100.       A more traditional                   - Next, previous screen
  101.         keyset would be ->            >  < - Next, previous line
  102.                                       Z  W - Forward, back continuous scroll
  103.                                       B  T - End, start of text
  104.                                       F  R - Find, repeat find
  105.  Find String 
  106.  
  107. - The string is limited to 16 characters.
  108. - The search is forward.
  109. - If any of the characters are upper case,  the  search  is automatically case
  110.   sensitive.  Otherwise, it is case insensitive, unless the string is preceded
  111.   by "/c/".
  112. - Wild card character "_" matches anything.  (May be installed.)
  113. - If found, the string is highlighted on line 10.   Hop  <SP> makes it the top
  114.   line.
  115.  
  116.  # - GO TO PAGE or LINE #: 
  117.  
  118. Prompt:  Go to Page (L) >
  119.      Give a page number you want to go to.  Page number calculations are based
  120. on the Z3ENV data for the printer along with the installed  single- or double-
  121. spacing calculation base.  Page calculation is simple minded and does not take
  122. account of form feeds, WordStar dot commands, etc.   To go to a  LINE  number,
  123. preceed the number with "L".
  124.                                  MARKING TEXT 
  125.  
  126.    Ten numbered place markers are available.   Marker #0 is  used as the start
  127. for block operations, described below. 
  128.  
  129.  
  130.  O - MARK: 
  131.  
  132.    Set special Marker #0 to the current screen.   This is the  beginning  mark
  133. for the four block operations.   The marker is initialized to the beginning of
  134. the text if you don't specifically set it.
  135.  
  136.  
  137.  Q - QUICK MARK: 
  138.  
  139.    Set the next available place marker (1-9) to this screen.  
  140.  
  141.  
  142.  0..9 - GO TO MARKER: 
  143.  
  144.    Return display to marker 0..9.  Markers are set with Q or O.
  145.  Z - NEXT MARK: 
  146.  
  147.    Go to next marker in the order set.  Cycles through markers without need to
  148. use or remember their numbers.
  149.  
  150.  
  151.  E - ERASE MARKERS: 
  152.  
  153.    Re-initialize markers 1-9 to start of text.
  154.  
  155.  
  156.    NOTE:   Markers inside a deleted block are reset to the end of the block.
  157.                               BLOCK COMMANDS 
  158.  
  159.  
  160.    "Blocks" consist of the text between Marker #0,  which is set at the TOP of
  161. a screen by  pressing "O",  and the BOTTOM of the current screen.   If you are 
  162. doing a lot of block operations,  it may  be  advisable to set  a  mark at the 
  163. present position with "Q", check the position of Marker #0,  and return before 
  164. doing anything.
  165.  
  166.  
  167.  P - PRINT BLOCK: 
  168.  
  169.    Send text in block to the printer.   <ESC> or  <^C>  will  halt the listing
  170. High bits and control characters other than CR,  LF and  TAB are filtered out.
  171. On first call, you will be prompted to initialize the printer
  172.  W - WRITE BLOCK: 
  173.  
  174.    You will be prompted for a file specification, then the block is written to
  175. it.  If the file already exists, you can  APPEND the block to it,  REPLACE the
  176. file, or just cancel the operation.
  177.  
  178.  
  179.  V - WRITE BLOCK TO FILE: 
  180.  
  181.    Skip file name prompt and append  block to  file  opened in  the last Write
  182. command.  Once an output file has been opened, V keeps adding to it.
  183.  
  184.  
  185.  U - DELETE BLOCK: 
  186.  
  187.    The block is removed from XOX's buffer.   This has no effect on the file on
  188. disk!  Deletion is used to eliminate sections before  a printout or disk write
  189. or just to make room in memory to intensively examine the interesting parts of
  190. a large file. 
  191.  B - SHOW CURSOR BLOCK OPERATION: 
  192.  
  193.    The block operations  are intended to work  as  simply  as  possible.   For
  194. example, to send the current screen to the printer, just press "OP".  To print
  195. a partial screen,  move the text of interest to  the top  and  press "O", then 
  196. move the end of the block to the bottom of the screen and press "P".   This is
  197. almost always the most convenient  way to do  a block op,  especially when you 
  198. get good with the scan up/down commands.
  199.  
  200.    It may not be possible to position the  text the  way  you  want  it on the
  201. first or last screen of the file.   The  "B" command displays a cursor on line
  202. 10, the same line a  Find  command  goes  to.   Move the cursor to the desired
  203. line with your arrow keys.   Now press  a block  command  key - "O" to set, or
  204. "P-U-W-V" to execute.  To cancel the cursor , press <RET>.
  205.  
  206.    If you set the block marker with  O  and continue to  move the cursor down,
  207. the defined block is highlighted.
  208.                                FILE INPUT/OUTPUT 
  209.  
  210.  
  211.  R - READ: 
  212.  
  213.    XOX will read as much of a file as available memory allows at one time.  If
  214. the file is too big,  a  "memory full" message will appear.   The Read command 
  215. gets more of the file into memory in one of two ways:
  216.  
  217.    1)  If the text buffer is still full,  another  memory-sized section of the 
  218. text will be read in with one screen of overlap.
  219.  
  220.    2)  If some memory is available because you have done block deletions, more
  221. of the text will be appended until the buffer is full again.   By  getting rid
  222. of stuff you  aren't interested  in,  a large  file  can  be  condensed to the
  223. portion you wish to examine. 
  224.  
  225.  
  226.  ^L -  RELOG: 
  227.  
  228.      Start XOX on a new file list.
  229.  TAB - FILE RING: 
  230.  
  231.    All the file names  matched by the initial  callup  are  stored in a sorted
  232. list.  The RING command shows them as a drop down list with the current selec-
  233. tion highlighted.   Move through  the  list to  your next selection  and press
  234. <RET>.   You  then  see  the  prompt:  (R)ead  (m)erge (q)uit?   READ  is  the
  235. default choice, or you may add the file to the text buffer or cancel the whole
  236. thing. 
  237.  
  238.    Arrow key definitions are loaded  from the TCAP.  The  WordStar  diamond is
  239. also active.  Ring controls are:
  240.  
  241.      Move up list        up,^E                (with wrap to end)
  242.      Move down           dn,^X,<SP>,<TAB>   (with wrap to start)
  243.      Next screen         rt,^D,^F,^C     (if none, to last file)
  244.      Previous screen     lt,^S,^A,^R    (if none, to first file)
  245.      Login new list      L
  246.      Exit XOX            X
  247.  
  248.    Any unrecognized key cancels,  e.g.  Q,  <ESC>.  If you are viewing a file,
  249. cancellation just resumes viewing.  If you have just logged in a new file set,
  250. cancellation terminates XOX.
  251.  M - MERGE: 
  252.  
  253.    Append the specified file to the  text  buffer.  The  FILE  RING  can  also
  254. merge files,  but  MERGE  allows you to get a file from a different directory.
  255. The display moves to the merged text and a place  marker is  automatically set
  256. to its start.
  257.                                 MISCELLANEOUS 
  258.  
  259.  
  260.  / or ? - HELP SCREEN: 
  261.  
  262.    Display of command keys.   Changing the command keys  automatically changes
  263. the HELP display.
  264.  
  265.  
  266.  Y - DELETE LINE: 
  267.  
  268.    Deletes the line at the top of the screen.   More convenient than marking a
  269. block for deleting a few lines.
  270.  
  271.  
  272.  I - INITIALIZE PRINTER: 
  273.  
  274.    Send optional init string to printer.
  275.  T - TYPE: 
  276.  
  277.    Type a line to be sent to printer.   Terminate  with <CR>.   Edit with DEL, 
  278. BSP, ^X.  Can send ^L line feed or other control characters directly.  To send
  279. ^X, ^M or ^P, type ^P^X etc.  The string input routine does NOT call BDOS read
  280. string function.
  281.  
  282.  
  283.  "+" or "=", "-"  - SCAN SPEED: 
  284.  
  285.    While continuous scrolling is running,  the speed may be adjusted faster or
  286. slower.
  287.  
  288.  
  289.  C - CLEAR <chr> LINES: 
  290.  
  291.    CLEAR automatically deletes all lines  starting with the  specified charac-
  292. ter from memory.  Using "[" will clean up a BBS capture file.  Using "." would
  293. clear dot commands from a  WordStar file.   CLEAR prompts for the character to
  294. look for.   Pressing <CR>  uses the default character  ("[")  or the character
  295. entered the last time the command was used.   To get out of CLEAR, press ^C or
  296. <ESC>.
  297.  ^ - SHOW CONTROLS: 
  298.  
  299.      XOX ignores most control characters. It can display them  in 
  300. "^N"  format if you want to see them, e.g. to see how a  WordStar 
  301. or HLP file is marked.
  302.  
  303.  
  304.  \ - SET HORIZONTAL SCROLL: 
  305.  
  306.    Pressing "+" or "=" continuously increases the horizontal scroll.  Pressing
  307. "-" decreases it.  Any other key exits.   FIND will still match a string which
  308. has scrolled off the screen.   XOX  checks the TCAP for  screen  width,  so  I
  309. recommend that those with terminals capable of 135  col display use it  rather
  310. than horizontal scrolling.
  311.  
  312.  = - SHOW FILE SIZE TO EOS: 
  313.  
  314.    Number of bytes from start of text  buffer to  end  of  current  screen  is
  315. displayed.  Intended to assist file chopping operations. 
  316. :4
  317.  Datespec File Selection - 1/5 
  318.  
  319.    Carson Wilson  suggested  adding a  datestamp  filter to  XOX  and was kind
  320. enough to show me how  he did it  with  FILEDATE.   I  have  closely  followed
  321. Carson's method and wish to gratefully acknowlege his permission to do so.
  322.  
  323.    [FILEDATE is a powerful directory utility distributed with ZSDOS.  Refer to
  324. Section 4.4 of the  ZSDOS User's Manual  for more  information on it.  If  you
  325. know how to use FD, you know how to use XOX.]
  326.  
  327.    The Datespec function tells XOX how to build its file list.  XOX can select
  328. files created, modified, or accessed on, before or after an ambiguously speci-
  329. fied date.   Once selected,  the list can  be sorted alphabetically by name or
  330. type or sorted by date.  Phew!  
  331.  
  332.  Datespec File Selection - 2/5 
  333.  
  334.  
  335.  Syntax:  XOX [dir:][afn] [/][options][<, =, or >dd.mm.yy time]
  336.                  (1)         (2)          (3)
  337.  
  338.  
  339. Options:
  340.  
  341.   A  use Access date  {Modify date is default}
  342.   C  use Create date
  343.   T  sort alphabetically by Type
  344.   S  include System files
  345. + -  sort by date
  346.  
  347. Time:
  348.   hh:mm for real time clock
  349.   +dddd for relative clock with DateStamper
  350.  Datespec File Selection - 3/5 
  351.  
  352. (1) - Filespec
  353.    If the filespec is omitted, it is automatically wildcarded.   In that case,
  354. the  "/"  delimiter is  required  before any  selecting or sorting options are
  355. given.  A blank command line matches everything. 
  356.      Example:
  357.      XOX *.* =    All files modified today.
  358.      XOX /=       Same
  359.      XOX /-       Sort from newest to oldest, very useful.
  360.  
  361.  
  362. (2) - Options
  363.    By default, any date  specification is  compared to the file's Modify date.
  364. If the file doesn't have a Modify date, the Create date is used.   The options
  365. "A" or "C" force the use of that particular date.
  366.  Datespec File Selection - 4/5 
  367.  
  368. (3) - Datespec
  369.    The mandatory date signifier  "<",  "=",  or  ">" tells XOX to select files
  370. from before, at, or after the date which follows.
  371.  
  372. The full syntax for the date specification is:
  373.  
  374.      [day[.month[.year[ hour[:minute]]]]]
  375.  
  376.    Omitted date fields are  filled in with the current date.   An omitted time
  377. spec is taken to mean any time.   The wildcard character  "*"  may be  used to
  378. match any date or time.
  379.  
  380.      Examples:
  381.      Datespec       Meaning
  382.      =              Files modified today, any time
  383.      a>1.7          Files accessed after 1 July this year
  384.      c=..87         Files created any time in 1987
  385.      <.. 12:30      Files modified before 12:30pm today
  386.      a-=            Today's accessed files, most recent first
  387.  Datespec Dile Selection - 5/5 
  388.  
  389.    Files which don't have a date  stamp  will  fail all tests.   If the option
  390. datespec parser is unable to resolve a command line, it just gives up  (with a
  391. beep) and uses the larger set of files matching the Filespec alone.
  392.  
  393.    The "European" date style used here seems  logical and  convenient in  that
  394. date specification proceeds from high to low resolution.   You may install XOX
  395. (with XOXINST) to use the "American" style mm/dd/yy if you prefer it.
  396.  
  397.    The RELOG command also calls the  full  command  line  parser,  so  you can
  398. reselect from within XOX the same way you did at callup.   RELOG  can  also be
  399. called while viewing the file ring list.  Press the command you have installed
  400. for RELOG.  Or, if it conflicts with an arrow key definition, just press "L".
  401. :5
  402.  Examples of Use - 1/2 
  403.  
  404.    a. USING XOX TO PROCESS A BBS CAPTURE FILE
  405.  
  406. There are several commands intended for this purpose:
  407.  
  408. C - Clear prompt lines.  All those useless lines that start  with      
  409.     "[" are deleted, e.g. [More...], [Read (Y/N/Q)?].
  410. Y - Delete line.  Get rid of lines you send to the BBS.
  411. O - Set block marker to top of current screen.
  412. W - Write from block  marker to bottom of current  screen  to   a
  413.     file.  You can store  messages in log files by subject, month
  414.     BBS, etc.
  415. V - Write  current  block to  same file  as  last  "W"   command.  
  416.     Repeated use of O and V keeps appending messages you want to
  417.     save to the previously designated log file.
  418.  Examples of Use - 2/2 
  419.  
  420.    b. USING XOX TO CHOP A FILE
  421.  
  422. The file is too large (e.g. 100k) for a memory resident text editor.
  423.  
  424. O - Set block marker.  Start of a chop file.
  425. W - Write a convenient size block to a file.  
  426. U - Delete block (from memory only - doesn't affect original disk     
  427.     file).
  428. R - Read more of file.  You can keep  reading more in after  each     
  429.     deletion.
  430.