home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / flistfrontend / doc / browse.mem < prev    next >
Encoding:
Text File  |  1995-10-27  |  55.4 KB  |  1,271 lines

  1.  
  2.  
  3.  
  4.           VAX-11
  5.           Screen-Oriented Browsing Program
  6.           BROWSE
  7.  
  8.  
  9.  
  10.           ----------------
  11.  
  12.  
  13.  
  14.           October 27, 1995
  15.  
  16.  
  17.  
  18.           ----------------
  19.  
  20.  
  21.           This manual documents BROWSE, a file browsing utility
  22.  
  23.  
  24.           Copyright 1995 by Thomas E. Dickey
  25.                                                               Page iii
  26.  
  27.  
  28.                                    CONTENTS
  29.  
  30.  
  31.  
  32. CHAPTER 1       INTRODUCTION TO BROWSE
  33.  
  34.         1.1     SPECIAL FEATURES . . . . . . . . . . . . . . . . . 1-1
  35.         1.2     COMMAND ENTRY  . . . . . . . . . . . . . . . . . . 1-1
  36.         1.3     SEARCHES . . . . . . . . . . . . . . . . . . . . . 1-2
  37.         1.4     SCREEN ORGANIZATION  . . . . . . . . . . . . . . . 1-3
  38.         1.5     CONFIGURATION REQUIREMENTS . . . . . . . . . . .  1-10
  39.  
  40.  
  41. CHAPTER 2       BROWSE COMMANDS
  42.  
  43.         2.1     SCROLLING COMMANDS . . . . . . . . . . . . . . . . 2-1
  44.         2.1.1     Forward/Backward . . . . . . . . . . . . . . . . 2-1
  45.         2.1.2     Aborting A Scrolling Operation . . . . . . . . . 2-2
  46.         2.1.3     Left/Right . . . . . . . . . . . . . . . . . . . 2-2
  47.         2.1.4     Column And Line Display  . . . . . . . . . . . . 2-3
  48.         2.2     SEARCHING  . . . . . . . . . . . . . . . . . . . . 2-4
  49.         2.2.1     Initiating A Search  . . . . . . . . . . . . . . 2-4
  50.         2.2.2     Continuing A Search  . . . . . . . . . . . . . . 2-4
  51.         2.2.3     Aborting A Search  . . . . . . . . . . . . . . . 2-5
  52.         2.3     ALTERING THE DISPLAY FORMAT  . . . . . . . . . . . 2-5
  53.         2.3.1     Overstrikes  . . . . . . . . . . . . . . . . . . 2-5
  54.         2.3.2     Marks And Record Numbers . . . . . . . . . . . . 2-5
  55.         2.4     OTHER COMMANDS . . . . . . . . . . . . . . . . . . 2-6
  56.         2.4.1     Exiting From BROWSE  . . . . . . . . . . . . . . 2-6
  57.         2.4.2     Help-Screen  . . . . . . . . . . . . . . . . . . 2-7
  58.         2.4.3     Screen-Refresh . . . . . . . . . . . . . . . . . 2-7
  59.         2.4.4     Screen-Dump  . . . . . . . . . . . . . . . . . . 2-8
  60.         2.4.5     Version  . . . . . . . . . . . . . . . . . . . . 2-8
  61.  
  62.  
  63. CHAPTER 3       INVOKING BROWSE
  64.  
  65.  
  66. APPENDIX A      COMMAND SUMMARY
  67.  
  68.                                                                        Page iv
  69.  
  70.  
  71.                                    PREFACE
  72.  
  73.  
  74.  
  75. MANUAL OBJECTIVES
  76.  
  77. This manual describes the screen-oriented browsing program BROWSE and provides
  78. usage and reference information on the program.
  79.  
  80.  
  81.  
  82. INTENDED AUDIENCE
  83.  
  84. This manual is intended for users of the VAX/VMS  operating  system  who  must
  85. manage  disk  files.  Users are expected to be familiar with the VMS directory
  86. structure.
  87.  
  88.  
  89.  
  90. STRUCTURE OF THIS DOCUMENT
  91.  
  92. This manual contains three chapters and one appendix.
  93.  
  94.     o   Chapter 1, Introduction to BROWSE, provides an overview of BROWSE, and
  95.         describes screen manipulation and command entry.
  96.  
  97.     o   Chapter 2, BROWSE Commands, describes  the  keystroke  commands  which
  98.         BROWSE processes.
  99.  
  100.     o   Chapter 3, Invoking BROWSE, explains how to run BROWSE  and  describes
  101.         all of the command line qualifiers.
  102.  
  103.     o   Appendix A, Command Summary, describes all BROWSE commands in a short,
  104.         concise form.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.                                   CHAPTER 1
  118.  
  119.                             INTRODUCTION TO BROWSE
  120.  
  121.  
  122.  
  123. The BROWSE program permits you, the user, to browse a VMS file, scrolling  up,
  124. down,  left or right.  By using cursor- and screen-update optimization, BROWSE
  125. provides you with rapid response.  BROWSE is superior to the EDT screen editor
  126. for applications which require examination, rather than modification.
  127.  
  128.  
  129.  
  130. 1.1  SPECIAL FEATURES
  131.  
  132. Besides the basic scrolling functions, BROWSE provides you with other powerful
  133. screen-oriented functions:
  134.  
  135.     o   BROWSE always shows the current position of the  display-page  in  the
  136.         file, as well as the filename.
  137.  
  138.     o   Text which is underlined or overstruck is  shown  in  the  display  by
  139.         highlighting.
  140.  
  141.     o   You may search  for  a  string,  either  forward  or  backward.   Text
  142.         matching  the  search-string  is  highlighted  (instead  of underlined
  143.         text).
  144.  
  145.     o   You may interrupt a search, so that if you accidentally begin a search
  146.         while  examining  a  very  large  file, you can regain control of your
  147.         terminal.
  148.  
  149.     o   You may alter the format of  the  display,  causing  characters  which
  150.         normally  are  used for carriage control (and are invisible) to become
  151.         visible.
  152.  
  153.     o   BROWSE provides you with a "ruler" command which shows  you  the  line
  154.         number and column of any point in the file.
  155.  
  156.  
  157.  
  158. 1.2  COMMAND ENTRY
  159.  
  160. Most  commands  recognized  by  BROWSE  are  single-keystroke.   It  maps  all
  161. alphabetic  characters  to  the  set of control characters (e.g., "F", "f" and
  162. "CTRL/F" are equivalent).
  163. INTRODUCTION TO BROWSE                                                Page 1-2
  164.  
  165.  
  166. Commands which require more information than a single keystroke prompt you  in
  167. the  status line for the required information.  There are two types of command
  168. which result in a prompt:
  169.  
  170.      1.  Searches.  BROWSE accepts any combination of printing characters  for
  171.          a search target.  The DELETE key and CTRL/U, CTRL/X have their normal
  172.          meaning (delete or cancel).
  173.  
  174.      2.  Numeric arguments.  Certain  commands  (e.g.,  left/right  scrolling)
  175.          accept  an  optional  numeric argument.  If you type a numeric digit,
  176.          BROWSE enters numeric-argument mode, echoing this digit as the  first
  177.          character  of  your input and listing in the prompt the letters which
  178.          it will accept as a command.  If you type a number followed by one of
  179.          these  (alphabetic) characters, BROWSE will then execute the command.
  180.          For example, if you typed "12R", BROWSE  would  scroll  right  by  12
  181.          columns.
  182.  
  183.          If you type a digit but do not wish to perform a command, type CTRL/X
  184.          or CTRL/U.
  185.  
  186.  
  187.  
  188.  
  189. 1.3  SEARCHES
  190.  
  191. BROWSE performs searches and displays their result in an unusual manner:
  192.  
  193.     o   The search string may contain only printable ASCII  characters.   This
  194.         restriction  is  made  to eliminate the keypad-dependency of EDT.  The
  195.         search itself is case-independent.
  196.  
  197.     o   Blanks within the search string are matched by any type  of  blank  in
  198.         the  file  itself (e.g., space, TAB, RETURN, LINE-FEED and FORM-FEED).
  199.         Multiple blanks are treated as a single blank.
  200.  
  201.     o   Search-matches may  not  span  a  display-line.   (A  display-line  is
  202.         normally synonymous with a record in the file).
  203.  
  204.     o   All positions on the display screen which match the search string  are
  205.         highlighted.   Thus,  you may see all matches at a glance, rather than
  206.         by cursor movement.
  207.  
  208.     o   Positions which lie to the left or  right  of  the  screen  cause  the
  209.         corresponding  end  of  the  line  to be highlighted.  BROWSE does not
  210.         automatically scroll left/right to the search target.
  211.  
  212.     o   A search remains in effect until canceled (by searching for  an  empty
  213.         string).   If  you  scroll  about  with  an active search, BROWSE will
  214.         continue to highlight locations in the file  which  match  the  search
  215.         string.
  216.  
  217. Thus, rather  than  simply  duplicate  conventional  searches  (such  as  that
  218. provided  by  EDT),  BROWSE provides you with a powerful examination tool.  By
  219. treating all white-space the same, BROWSE  allows  you  to  ignore  the  exact
  220. amount of spacing.  The highlighting makes searches simpler by showing you all
  221. INTRODUCTION TO BROWSE                                                Page 1-3
  222.  
  223.  
  224. occurrences, rather than each one, one at a time.
  225.  
  226.  
  227.  
  228. 1.4  SCREEN ORGANIZATION
  229.  
  230. BROWSE reserves the last line of the screen for status display.  It  uses  the
  231. remainder of the screen to display your file.
  232.  
  233. Figure 1 shows a typical screen using  BROWSE.   Overstruck  text  (e.g.,  the
  234. title  "FLIST - Directory Editor")  is highlighted.  The file name is given in
  235. the status line, as is the range of line numbers shown in  the  screen  (i.e.,
  236. "1:23").    The   range  of  columns  "1:69"  is  obtained  from  the  current
  237. screen-width (for this example, 70), and the amount by  which  the  screen  is
  238. shifted.   The length, in columns, of the longest line on the display is given
  239. in parentheses, "(77)".
  240.  
  241.  
  242.    Screen dumped: 21-JAN-1985 07:11:44
  243.    Image top: 0  bottom: 22
  244.  
  245.    +---------------------------------------------------------------------+
  246.    |FLIST - Directory Editor                                             |
  247.    |                                                                     |
  248.    |  FLIST (directory editor) permits the  user  to  sort  directories, |
  249.    |  files,  delete  rename  or  alter  the  protection code on files, a|
  250.    |  dynamic display.                                                   |
  251.    |                                                                     |
  252.    |  Format:                                                            |
  253.    |                                                                     |
  254.    |        FLIST [*.*;*]                                                |
  255.    |                                                                     |
  256.    |                                                                     |
  257.    |Options:                                                             |
  258.    |                                                                     |
  259.    |  /NOALL         Suppress filename if no privilege for other data    |
  260.    |  /ALL (D)       Read  directory  entries  for  all  filenames,   eve|
  261.    |                 insufficient privilege.                             |
  262.    |  /DBACKUP       Show backup dates instead of creation dates         |
  263.    |  /NODATE        Suppress creation-date+time                         |
  264.    |  /FAST          Suppress all fields other than the filename (*3 fast|
  265.    |  /NOFAST        Open each file  to  obtain  auxiliary  information  |
  266.    |                 date, size).                                        |
  267.    |  /NOOWNER       Suppress display of owner code                      |
  268.    |  /NOPROTECTION  Suppress display of protection mask                 |
  269.    |FL.HLP;   Lines 1:23  Cols 1:69 (77)                                 |
  270.    +---------------------------------------------------------------------+
  271.  
  272.                              Figure 1  Sample Screen
  273.  
  274.  
  275. You may direct BROWSE to display the same  screen  shifted  to  the  right  by
  276. typing R.  Scrolling and shifting are single-keystroke commands in BROWSE.
  277. INTRODUCTION TO BROWSE                                                Page 1-4
  278.  
  279.  
  280.    Screen dumped: 21-JAN-1985 07:12:03
  281.    Image top: 0  bottom: 22
  282.  
  283.    +---------------------------------------------------------------------+
  284.    |                                                                     |
  285.    |                                                                     |
  286.    |the  user  to  sort  directories,  examine                           |
  287.    |  the  protection code on files, all via a                           |
  288.    |                                                                     |
  289.    |                                                                     |
  290.    |                                                                     |
  291.    |                                                                     |
  292.    |                                                                     |
  293.    |                                                                     |
  294.    |                                                                     |
  295.    |                                                                     |
  296.    |                                                                     |
  297.    |if no privilege for other data                                       |
  298.    |ntries  for  all  filenames,   even   if                             |
  299.    |lege.                                                                |
  300.    |instead of creation dates                                            |
  301.    |date+time                                                            |
  302.    |s other than the filename (*3 faster)                                |
  303.    |  obtain  auxiliary  information  (e.g.,                             |
  304.    |                                                                     |
  305.    |f owner code                                                         |
  306.    |f protection mask                                                    |
  307.    |FL.HLP;   Lines 1:23  Cols 36:104 (77)                               |
  308.    +---------------------------------------------------------------------+
  309.  
  310.                      Figure 2  Sample Screen, Shifted Right
  311.  
  312.  
  313. BROWSE permits you to change the display dynamically.  The overstruck text  is
  314. composed  by  backspace-overstrikes.   By  toggling the O-command, you may see
  315. these backspaces (i.e., "^H" is a CTRL/H, or backspace).
  316. INTRODUCTION TO BROWSE                                                Page 1-5
  317.  
  318.  
  319.    Screen dumped: 21-JAN-1985 07:11:51
  320.    Image top: 0  bottom: 22
  321.  
  322.    +---------------------------------------------------------------------+
  323.    |D^HDI^HIR^HRE^HED^HD -^H- D^HDi^Hir^Hre^Hec^Hct^Hto^Hor^Hry^Hy E^HEd^|
  324.    |^M                                                                   |
  325.    |  FLIST (directory editor) permits the  user  to  sort  directories, |
  326.    |  files,  delete  rename  or  alter  the  protection code on files, a|
  327.    |  dynamic display.^M                                                 |
  328.    |^M                                                                   |
  329.    |  Format:^M                                                          |
  330.    |^M                                                                   |
  331.    |        FLIST [*.*;*]^M                                              |
  332.    |^M                                                                   |
  333.    |^M                                                                   |
  334.    |O^HOp^Hpt^Hti^Hio^Hon^Hns^Hs:^H:^M                                   |
  335.    |^M                                                                   |
  336.    |  /NOALL         Suppress filename if no privilege for other data^M  |
  337.    |  /ALL (D)       Read  directory  entries  for  all  filenames,   eve|
  338.    |                 insufficient privilege.^M                           |
  339.    |  /DBACKUP       Show backup dates instead of creation dates^M       |
  340.    |  /NODATE        Suppress creation-date+time^M                       |
  341.    |  /FAST          Suppress all fields other than the filename (*3 fast|
  342.    |  /NOFAST        Open each file  to  obtain  auxiliary  information  |
  343.    |                 date, size).^M                                      |
  344.    |  /NOOWNER       Suppress display of owner code^M                    |
  345.    |  /NOPROTECTION  Suppress display of protection mask^M               |
  346.    |FL.HLP;   Lines 1:23  Cols 1:69 (89)                                 |
  347.    +---------------------------------------------------------------------+
  348.  
  349.              Figure 3  Sample Screen with Expanded Carriage Control
  350.  
  351.  
  352. Even more detail is possible.  You may direct BROWSE to show the  file-address
  353. (cumulative character count) of each display line, and the line number (modulo
  354. 100) before each line:
  355. INTRODUCTION TO BROWSE                                                Page 1-6
  356.  
  357.  
  358.    Screen dumped: 21-JAN-1985 07:12:36
  359.    Image top: 0  bottom: 22
  360.  
  361.    +---------------------------------------------------------------------+
  362.    |        0.01:FLIST - Directory Editor                                |
  363.    |       70.02:                                                        |
  364.    |       74.03:  FLIST (directory editor) permits the  user  to  sort  |
  365.    |      156.04:  files,  delete  rename  or  alter  the  protection cod|
  366.    |      238.05:  dynamic display.                                      |
  367.    |      260.06:                                                        |
  368.    |      264.07:  Format:                                               |
  369.    |      278.08:                                                        |
  370.    |      282.09:        FLIST [*.*;*]                                   |
  371.    |      308.10:                                                        |
  372.    |      312.11:                                                        |
  373.    |      316.12:Options:                                                |
  374.    |      344.13:                                                        |
  375.    |      348.14:  /NOALL         Suppress filename if no privilege for o|
  376.    |      418.15:  /ALL (D)       Read  directory  entries  for  all  fil|
  377.    |      498.16:                 insufficient privilege.                |
  378.    |      542.17:  /DBACKUP       Show backup dates instead of creation d|
  379.    |      606.18:  /NODATE        Suppress creation-date+time            |
  380.    |      654.19:  /FAST          Suppress all fields other than the file|
  381.    |      730.20:  /NOFAST        Open each file  to  obtain  auxiliary  |
  382.    |      810.21:                 date, size).                           |
  383.    |      844.22:  /NOOWNER       Suppress display of owner code         |
  384.    |      896.23:  /NOPROTECTION  Suppress display of protection mask    |
  385.    |FL.HLP;   Lines 1:23  Cols 1:56 (77):79                              |
  386.    +---------------------------------------------------------------------+
  387.  
  388.                   Figure 4  Sample Screen Showing File-Address
  389.  
  390.  
  391. Another keystroke transforms the file-address into record lengths:
  392. INTRODUCTION TO BROWSE                                                Page 1-7
  393.  
  394.  
  395.    Screen dumped: 21-JAN-1985 07:12:43
  396.    Image top: 0  bottom: 22
  397.  
  398.    +---------------------------------------------------------------------+
  399.    |       68.01:FLIST - Directory Editor                                |
  400.    |        2.02:                                                        |
  401.    |       79.03:  FLIST (directory editor) permits the  user  to  sort  |
  402.    |       79.04:  files,  delete  rename  or  alter  the  protection cod|
  403.    |       20.05:  dynamic display.                                      |
  404.    |        2.06:                                                        |
  405.    |       11.07:  Format:                                               |
  406.    |        2.08:                                                        |
  407.    |       23.09:        FLIST [*.*;*]                                   |
  408.    |        2.10:                                                        |
  409.    |        2.11:                                                        |
  410.    |       26.12:Options:                                                |
  411.    |        2.13:                                                        |
  412.    |       67.14:  /NOALL         Suppress filename if no privilege for o|
  413.    |       77.15:  /ALL (D)       Read  directory  entries  for  all  fil|
  414.    |       42.16:                 insufficient privilege.                |
  415.    |       62.17:  /DBACKUP       Show backup dates instead of creation d|
  416.    |       46.18:  /NODATE        Suppress creation-date+time            |
  417.    |       74.19:  /FAST          Suppress all fields other than the file|
  418.    |       77.20:  /NOFAST        Open each file  to  obtain  auxiliary  |
  419.    |       31.21:                 date, size).                           |
  420.    |       49.22:  /NOOWNER       Suppress display of owner code         |
  421.    |       54.23:  /NOPROTECTION  Suppress display of protection mask    |
  422.    |FL.HLP;   Lines 1:23  Cols 1:56 (77):79                              |
  423.    +---------------------------------------------------------------------+
  424.  
  425.                  Figure 5  Sample Screen Showing Record-Lengths
  426.  
  427.  
  428. By selecting "ruler-mode", you may use BROWSE to determine the column and line
  429. number  of  any  point in your file.  The ruler is highlighted to make it more
  430. readable.
  431. INTRODUCTION TO BROWSE                                                Page 1-8
  432.  
  433.  
  434.    Screen dumped: 21-JAN-1985 07:13:27
  435.    Image top: 0  bottom: 22
  436.  
  437.    +---------------------------------------------------------------------+
  438.    |FLIST - Directory Editor                                             |
  439.    |                                                                     |
  440.    |  FLIST (directory editor) permits the  user  to  sort  directories, |
  441.    |  files,  delete  rename  or  alter  the  protection code on files, a|
  442.    |  dynamic display.                                                   |
  443.    |                                                                     |
  444.    |  Format:                                                            |
  445.    |                                                                     |
  446.    |        FLIST [*.*;*]                                                |
  447.    |                                                                     |
  448.    |                                                                     |
  449.    |Options:                                                             |
  450.    |                                                                     |
  451.    |  /NOALL         Suppress filename if no privilege for other data    |
  452.    |  /ALL (D)       Read  directory  entries  for  all  filenames,   eve|
  453.    |                 insufficient privilege.                             |
  454.    |  /DBACKUP       Show backup dates instead of creation dates         |
  455.    |  /NODATE        Suppress creation-date+time                         |
  456.    |  /FAST          Suppress all fields other than the filename (*3 fast|
  457.    |  /NOFAST        Open each file  to  obtain  auxiliary  information  |
  458.    |                 date, size).                                        |
  459.    |  /NOOWNER       Suppress display of owner code                      |
  460.    |  /NOPROTECTION  Suppress display of protection mask                 |
  461.    |....+...10....+...20....+...30....+...40....+...50....+...60....    9|
  462.    +---------------------------------------------------------------------+
  463.  
  464.                Figure 6  Sample Screen Showing Line/Column "Ruler"
  465.  
  466.  
  467. Though BROWSE is designed primarily to browse text files, you may also examine
  468. binary  files  with  it.   Figure 7  was  obtained  by  setting the qualifiers
  469. "/OVER:2" and "/MARK".  This causes all control characters to be shown as ".",
  470. and the record-address and line numbers as a display-prefix.
  471.  
  472. Note that unlike Figures 4 and 5, there are now four columns of numbers  shown
  473. in  the prefix area.  BROWSE normally displays one file-record on each display
  474. line.  However, if a LINE-FEED is  found  embedded  within  a  record,  BROWSE
  475. begins  a  new  display  line.  In Figure 7, the first column shows the record
  476. file address, and the second the offset of the  new  display-line  within  the
  477. record.   Because the display lines and records are not synonymous, the record
  478. number (third column) is  shown  separately,  from  the  line  number  (fourth
  479. column).
  480. INTRODUCTION TO BROWSE                                                Page 1-9
  481.  
  482.  
  483.    Screen dumped: 21-JAN-1985 07:14:33
  484.    Image top: 0  bottom: 22
  485.  
  486.    +---------------------------------------------------------------------+
  487.    |        0......01.01:..0.@.L.....0204....................;#Qv........|
  488.    |         .0141....02:......... .#.......$.......C.......D.......G... |
  489.    |         .0189....03:...H.......l.?....}$.......!...........         |
  490.    |         .0229....04:VMSRTL_001.....$.                               |
  491.    |         .0247....05:.....!.......T...                               |
  492.    |         .0265....06:SCRSHR_001......................................|
  493.    |      512......02.07:all.date.dbackup.drevised.fast.owner.protection.|
  494.    |         .0273....08:%s%s                                            |
  495.    |         .0278....09:..HLP.FLIST.more...... %s. ...Terminal must be V|
  496.    |         .0345....10:..>..=..[0m.[20l..[?4l.?[%d;%d?....             |
  497.    |         .0381....11:....-.%s: \%.8s\.$.%s                           |
  498.    |         .0403....12:. 00:00:00.00.no.%d%c.%s: %s.%s: %s             |
  499.    |         .0439....13:. .Reading: %3d files.Working.....Command failed|
  500.    |     1024......03.14:ontinue.?help.?columns.?date.?level.?quota.?size|
  501.    |     1536......04.15:inspect.more.next.nfind.print..LIS.protect.purge|
  502.    |     2048......05.16:.%d.locked.  .  .  .%%-%ds.%-6s. .%6.6d.%-6s. .%|
  503.    |     2560......06.17:licable.Repeated display-field: %s.%c., . (%s).D|
  504.    |     3072......07.18:u cannot view this file.EDIT.HOME.%s%s.HOME.EDTI|
  505.    |     3584......08.19:.OQ.Q.OR.R.OS.Op.?p.Oq.?q.Or.?r.Os.?s.Ot.?t.Ou.?|
  506.    |         .0180....20:....;%d.r...You are not the file's owner.(NO Pri|
  507.    |     4096......09.21:roll .Up/.Down 1/2 screen (arrow)..    R,L  - sc|
  508.    |     4608......10.22: or arrow keys.Special:.    K   - Copy screen to|
  509.    |         .0483....23:.  Lines %d:%d  Cols %d:%d (%                   |
  510.    |FL.EXE;   Lines 1:23  Cols 1:56 (512):512  Records 1+                |
  511.    +---------------------------------------------------------------------+
  512.  
  513.                    Figure 7  Sample Screen Showing Binary File
  514.  
  515.  
  516. The status line is extended to account for the  additional  information.   The
  517. ":512"  indicates  the  longest record length.  The range of record numbers is
  518. shown "1+", because (like the prefix line-numbers), the prefix  record-numbers
  519. are  given  modulo  100.   Scrolling  and ruler mode work properly when record
  520. addresses and line numbers are shown.  The prefix area is fixed on the screen;
  521. the content alone is shifted:
  522. INTRODUCTION TO BROWSE                                               Page 1-10
  523.  
  524.  
  525.    Screen dumped: 21-JAN-1985 07:15:43
  526.    Image top: 0  bottom: 22
  527.  
  528.    +---------------------------------------------------------------------+
  529.    |        0......01.01:06............".....                            |
  530.    |         .0141....02:                                                |
  531.    |         .0189....03:                                                |
  532.    |         .0229....04:                                                |
  533.    |         .0247....05:                                                |
  534.    |         .0265....06:................................................|
  535.    |      512......02.07:el: %d.%s.Total blocks: %d (%d allocated).%s.%s.|
  536.    |         .0273....08:                                                |
  537.    |         .0278....09:                                                |
  538.    |         .0345....10:                                                |
  539.    |         .0381....11:                                                |
  540.    |         .0403....12:                                                |
  541.    |         .0439....13:                                                |
  542.    |     1024......03.14:end./backward./home./middle./low./forward./colum|
  543.    |     1536......04.15:fix is legal only on sort-command.+.-.<number> u|
  544.    |     2048......05.16:;.%d.File '%s' is not a member of file-list.File|
  545.    |     2560......06.17:LIS.LOG.LST.MAP.OBJ.TMP.TM0.TM1.TM2.TM3.TM4.TM5.|
  546.    |     3072......07.18:ust be positive.Argument for QUIT must be '*' or|
  547.    |     3584......08.19:d..[H.[J...Two control/C's in succession trigger|
  548.    |         .0180....20:it..    ?    - display this message-screen.    _|
  549.    |     4096......09.21:umn (in scale-mode, move cursor up too).    I,J |
  550.    |     4608......10.22:   - Toggle .OVER mode (3 states if /OVER, else |
  551.    |         .0483....23:                                                |
  552.    |                     ....+..130....+..140....+..150....+..160...    1|
  553.    +---------------------------------------------------------------------+
  554.  
  555.                Figure 8  Sample Screen Showing Shifted Binary File
  556.  
  557.  
  558.  
  559.  
  560.  
  561. 1.5  CONFIGURATION REQUIREMENTS
  562.  
  563. BROWSE runs on any VT52, VT100 or other ANSI x3.64-compatible terminal.
  564.  
  565. BROWSE is written in VMS-C, and requires approximately 50 kilobytes of memory.
  566. It has been tested under VMS versions 3.6, 3.7 and 4.0.
  567.  
  568. You may use it to examine any sequential VMS disk file.
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.                                   CHAPTER 2
  582.  
  583.                                BROWSE COMMANDS
  584.  
  585.  
  586.  
  587. This chapter describes in detail the BROWSE browsing commands.
  588.  
  589.  
  590.  
  591. 2.1  SCROLLING COMMANDS
  592.  
  593. BROWSE permits you to scroll forward or backward in units of a half-screen, or
  594. left  or right in units of a column.  The restriction to half-screen scrolling
  595. is made to reduce the overhead required to examine a file.  This  permits  you
  596. to examine files which are larger than those which you could edit.
  597.  
  598. Most scrolling operations are  performed  in  a  single  keystroke.   You  may
  599. provide a repeat-count to modify the basic half-screen operations.
  600.  
  601.  
  602.  
  603. 2.1.1  Forward/Backward
  604.  
  605. You may scroll through your file in either  direction.   BROWSE  provides  you
  606. with several commands for this purpose:
  607.  
  608.     U   The UP command (also CTRL/U)  directs  BROWSE  to  scroll  up  by  one
  609.         half-screen.  You may not scroll up past the beginning of the file.
  610.  
  611.     D   The DOWN command (also CTRL/D) directs BROWSE to scroll  down  by  one
  612.         half-screen.  You may not scroll past the end of the file.
  613.  
  614.     F   The FORWARD command (also CTRL/F and space) directs BROWSE  to  scroll
  615.         down by a full screen.
  616.  
  617.     B   The BACKWARD command (also CTRL/B) directs BROWSE to scroll  up  by  a
  618.         full screen.
  619.  
  620.     T   The TOP command (also CTRL/T) directs BROWSE to scroll to the  top  of
  621.         the file (i.e., the first line).
  622.  
  623.     E   The END command (also CTRL/E) directs BROWSE to scroll to the  end  of
  624.         the file.
  625.  
  626. As you scroll or skip forward through a file, BROWSE constructs a table  which
  627. BROWSE COMMANDS                                                       Page 2-2
  628.  
  629.  
  630. permits  it  to  rapidly  return  to  the places where you have been.  This is
  631. useful for returning to the end of the file.  It also permits BROWSE to return
  632. to  the  same point on upward scrolling.  Each half-screen display overlaps by
  633. one line.  The overlap-lines are the tabulated positions in the file.
  634.  
  635. By supplying a number before the  scrolling  command,  you  direct  BROWSE  to
  636. repeat  that  operation (without, of course the extra screen operations).  For
  637. example, if you type
  638.  
  639.         10D
  640.  
  641. BROWSE will scroll forward by ten half-screens (normally 110 lines).   (Repeat
  642. counts are not applicable to the TOP and END commands.)
  643.  
  644. Whenever BROWSE skips forward into a part of the file it has not read  before,
  645. it  displays (in the status line) the half-screen number which it is currently
  646. reading.  Because I/O on a heavily-loaded VMS system may be slow,  this  tells
  647. you  how far BROWSE has gotten.  Scrolling to parts of the file which you have
  648. previously viewed is much more rapid; BROWSE need  reread  only  the  text  to
  649. display on that screen.
  650.  
  651. The arrow keys (UP-ARROW and DOWN-ARROW) are normally assigned to the  UP  and
  652. DOWN half-screen scrolling commands.
  653.  
  654.  
  655.  
  656. 2.1.2  Aborting A Scrolling Operation
  657.  
  658. If you direct BROWSE to scroll to the end of a file, it  will  attempt  to  do
  659. just  that.   However,  you may change your mind; you hadn't realized just how
  660. big the file really was.  To stop BROWSE, type "X".  This will cause BROWSE to
  661. cease reading new pages.  The last screen read will be displayed.
  662.  
  663.  
  664.  
  665. 2.1.3  Left/Right
  666.  
  667. You may direct BROWSE to display the file shifted to the left  or  the  right.
  668. Unlike  vertical  scrolling,  you  may scroll left or right by single columns.
  669. BROWSE provides you with several horizontal-scrolling commands:
  670.  
  671.     H   The HOME command (also CTRL/H, or backspace) returns  the  display  to
  672.         the "home" column (the leftmost one).
  673.  
  674.     J   The JUMP command (also CTRL/J, or LINE-FEED) causes BROWSE  to  scroll
  675.         right  until  the  end  of  the  longest line (in the current range of
  676.         lines) is visible in the display.
  677.  
  678.     L   The LEFT command (also CTRL/L) causes BROWSE to  scroll  left  by  one
  679.         half-screen.  You may not scroll left past the home-column.
  680.  
  681.     R   The RIGHT command (also CTRL/R) causes BROWSE to scroll right  by  one
  682.         half-screen.  Right-scrolling is limited, based on the current display
  683.         mode and the maximum record length of the file.
  684. BROWSE COMMANDS                                                       Page 2-3
  685.  
  686.  
  687. You may modify the operation of the HOME, LEFT and RIGHT commands by providing
  688. a number before the command:
  689.  
  690.     o   A number provided for the HOME command directs BROWSE to  scroll  left
  691.         or  right,  placing that particular column at the leftmost position in
  692.         the screen.
  693.  
  694.     o   A number provided for the LEFT or  RIGHT  command  directs  BROWSE  to
  695.         scroll left or right by that number of columns.
  696.  
  697. The arrow keys (LEFT-ARROW and RIGHT-ARROW) are normally assigned to the  LEFT
  698. and RIGHT commands.
  699.  
  700.  
  701.  
  702. 2.1.4  Column And Line Display
  703.  
  704. There are many applications in which you need to know the  exact  location  of
  705. parts of the file which you are examining.  BROWSE provides you with a "ruler"
  706. mode.  When you select  ruler-mode  (by  typing  an  underscore,  "_")  BROWSE
  707. changes  the  status  line to a combined scale plus line number.  The cursor's
  708. column is reflected in the scale; its line number is shown as well.   Examples
  709. of ruler-mode display are reproduced in Figures 1-6 and 1-8.
  710.  
  711. You may move the cursor in units of single columns or lines  using  the  arrow
  712. keys.   You  may  temporarily  exit  ruler  mode, and return.  The cursor will
  713. return to the point at which you exited ruler mode  (unless,  of  course,  you
  714. scroll to a new screen).
  715.  
  716. The following commands are provided in ruler mode:
  717.  
  718.     UP-ARROW
  719.         moves the cursor up one  line.   If  the  cursor  is  already  at  the
  720.         top-of-screen, BROWSE scrolls up by a half-screen.
  721.  
  722.     DOWN-ARROW
  723.         moves the cursor down one line.  If  the  cursor  is  already  at  the
  724.         bottom of the current screen, BROWSE scrolls down by a half-screen.
  725.  
  726.     LEFT-ARROW
  727.         moves the cursor left one column.  If the cursor is  in  the  leftmost
  728.         display-column, BROWSE scrolls left by a half-screen.
  729.  
  730.     RIGHT-ARROW
  731.         moves the cursor right one column.  If the cursor is at the end of the
  732.         scale, BROWSE scrolls to the right by a half-screen.
  733.  
  734.     H   (also CTRL/H, or backspace) moves the cursor to the  HOME-column.   If
  735.         the  cursor  is already in the HOME-column, BROWSE moves the cursor up
  736.         one line.
  737.  
  738.     I   (also CTRL/I, or TAB) moves the cursor right, to  the  next  tab  stop
  739.         (multiples of 8 columns).
  740.  
  741.     J   (also CTRL/J, or LINE-FEED) moves the cursor to the end of the current
  742. BROWSE COMMANDS                                                       Page 2-4
  743.  
  744.  
  745.         display  line.   If  the  cursor  is already at the end of the display
  746.         line, BROWSE moves the cursor down one line.
  747.  
  748. You may modify the effect of the arrow keys,  as  well  as  the  I-command  by
  749. prefixing the command with a repeat count.
  750.  
  751. In ruler mode, you may use the other BROWSE commands as well.
  752.  
  753.  
  754.  
  755. 2.2  SEARCHING
  756.  
  757. BROWSE provides you with a simple, easy to use search  command.   It  displays
  758. the  points  in  the  file  at  which the target is found by highlighting each
  759. occurrence.
  760.  
  761.  
  762.  
  763. 2.2.1  Initiating A Search
  764.  
  765. To initiate a search, type "/" or "\".  A  forward  slash  ("/")  initiates  a
  766. forward  search; a backward slash ("\") a backward search.  BROWSE will prompt
  767. you for a search target.  You may provide only printing  characters  (counting
  768. space).  To make corrections, use the DELETE key, or CTRL/U or CTRL/X to abort
  769. the input.  Hit the RETURN or ENTER key to complete the text-entry.
  770.  
  771. Whatever you have entered becomes the current search target.  A space in  your
  772. target  matches  any  number  of  white-space  characters  (i.e.,  space, TAB,
  773. FORM-FEED or RETURN) in the display.  BROWSE begins searching in  the  current
  774. screen  for  matches  against  this  target.   If no matches are found, BROWSE
  775. continues the search in the given direction.  If BROWSE reaches the end of the
  776. file  without  finding  a  match, it sounds an alarm, and retains its original
  777. position.  If a match is found, BROWSE scrolls to the corresponding screen and
  778. highlights  all matching positions.  Matching positions which happen to lie to
  779. the left or right of the current column limits are flagged by highlighting the
  780. end of the display line closest to the match.
  781.  
  782. If you provide no input (i.e., by hitting  CTRL/U  or  CTRL/X,  or  by  simply
  783. hitting  RETURN),  this  clears  the  search  target.   If no search target is
  784. active, BROWSE highlights overstruck text.
  785.  
  786.  
  787.  
  788. 2.2.2  Continuing A Search
  789.  
  790. You may continue a search in either direction, regardless of the direction  in
  791. which you initiated it:
  792.  
  793.     N   The NEXT command (also CTRL/N) directs BROWSE to search forward in the
  794.         file, for the next matching positions.
  795.  
  796.     P   The PREVIOUS command (also CTRL/P) directs BROWSE to  search  backward
  797.         in the file, for the previous matches.
  798. BROWSE COMMANDS                                                       Page 2-5
  799.  
  800.  
  801. 2.2.3  Aborting A Search
  802.  
  803. Searching a file always requires I/O, and can be slow.  If you wish to stop  a
  804. search,  type  "X".   This will cause BROWSE to halt the search, and return to
  805. its original position.
  806.  
  807.  
  808.  
  809. 2.3  ALTERING THE DISPLAY FORMAT
  810.  
  811. BROWSE is used to examine text files, rather than binary ones.  You may direct
  812. BROWSE to display your file in alternate forms to see its structure (i.e., the
  813. actual characters used to make up overstrikes, and the record numbering).  The
  814. alternatives  are  intentionally limited to those which are applicable to text
  815. (or  printer)  files.   You  may  not,  for  instance,   use   BROWSE   as   a
  816. screen-oriented  hexadecimal dump (it strips parity from all characters).  Nor
  817. does BROWSE interpret escape sequences (it prevents them from  affecting  your
  818. screen).
  819.  
  820. BROWSE, in fact, is designed to be quite robust.  It can display the  contents
  821. of  any sequential file without causing your terminal to lock up.  Any control
  822. characters which are not in its repertoire are converted  to  "^"-form  (e.g.,
  823. ESCAPE  becomes  "^[").   You  may  use  BROWSE  to examine binary (".EXE" and
  824. ".OBJ") files.  Note, however, that a LINE-FEED always causes BROWSE to  begin
  825. a new line.
  826.  
  827.  
  828.  
  829. 2.3.1  Overstrikes
  830.  
  831. Normally BROWSE interprets overstruck text (created by either  backspacing  or
  832. embedded  RETURN characters) and highlights it.  For binary files, this may be
  833. inappropriate.  Or you may wish to expand the  sequence  of  characters  which
  834. make  up  the  overstruck  text.  To do this, use the O-command ("O" only, not
  835. CTRL/O).  BROWSE  will  alter  its  interpretation  of  backspace  and  RETURN
  836. characters.  Backspaces are shown as "^H", and RETURN as "^M".  Tab characters
  837. also are shown as "^I".  To undo this  command,  type  "O"  again;  it  simply
  838. toggles the display.
  839.  
  840. If you have invoked BROWSE with the qualifier
  841.  
  842.         /OVER:2
  843.  
  844. then the O-command becomes a three-state toggle.  The third  state  shows  all
  845. control characters (except LINE-FEED) as a ".".  This permits you to examine a
  846. binary file looking only for character strings.
  847.  
  848. Figure 1-3 illustrates the second state of the O-command.  Figures 1-7 and 1-8
  849. illustrate the third state of the O-command.
  850.  
  851.  
  852.  
  853. 2.3.2  Marks And Record Numbers
  854.  
  855. You may also use BROWSE to examine the record structure of a text  file.   VMS
  856. BROWSE COMMANDS                                                       Page 2-6
  857.  
  858.  
  859. files  are  organized  in  records  which  may  be  of  any length up to 32768
  860. characters.  Files may have either variable record lengths,  or  fixed  (i.e.,
  861. all  the same).  For most text files, records are synonymous with lines, i.e.,
  862. the record attributes imply carriage  control  at  the  end  of  each  record.
  863. However,  there are files (such as those produced by RUNOFF) which do not have
  864. carriage control.  Also, even for files having  carriage  control  attributes,
  865. carriage control characters (e.g., LINE-FEED) may be embedded within a record.
  866. BROWSE makes sense of all this and shows your file as it really is.
  867.  
  868. When it opens a file for examination, BROWSE allocates a buffer  large  enough
  869. to  show the longest display line which could be made.  Files with no carriage
  870. control attributes are assumed to be like  those  produced  by  RUNOFF:   each
  871. record  contains characters as needed to produce the desired carriage control.
  872. BROWSE appends records until a LINE-FEED is found, either  explicitly,  or  as
  873. part  of  the  record  attributes.   (You  may  override  this action with the
  874. "/NOJOIN" qualifier).
  875.  
  876. A record may correspond to a fraction of a display line, or it may be  one  or
  877. more  display  lines.   You may examine the record structure of the display by
  878. using the "^"- and M-commands:
  879.  
  880.     o   The "^" command sets MARK-mode.  BROWSE redisplays the current  screen
  881.         with  a  prefix  before each line (see Figures 1-4, 1-5, 1-7 and 1-8).
  882.         There are either two or four columns of numbers shown in the prefix:
  883.  
  884.             -   If two, the first is the record file address  (the  number  of
  885.                 characters  from the beginning of the file), and the second is
  886.                 the display line number.
  887.  
  888.             -   If four, the first is the record file address, the  second  is
  889.                 the  offset  into  a  record, and the third and fourth are the
  890.                 record number and line number.
  891.  
  892.     o   The M-command (also  CTRL/M  or  RETURN)  toggles  this  prefix  mode,
  893.         showing  the  record  lengths,  rather  than  their  offsets.  It is a
  894.         three-state toggle; the third state resumes the original display mode.
  895.  
  896. Normally the M-command becomes inactive again on reaching the original display
  897. mode.  If you use the qualifier
  898.  
  899.         /MARKS
  900.  
  901. however, it is permanently enabled.
  902.  
  903.  
  904.  
  905. 2.4  OTHER COMMANDS
  906.  
  907. The remaining BROWSE commands are all one-of-a-kind, but all useful:
  908.  
  909.  
  910.  
  911. 2.4.1  Exiting From BROWSE
  912.  
  913. To exit from BROWSE, use the Q (quit) command, or Z (also CTRL/Z).
  914. BROWSE COMMANDS                                                       Page 2-7
  915.  
  916.  
  917. 2.4.2  Help-Screen
  918.  
  919. You may obtain online help  from  BROWSE  by  typing  "?"  (or  PF2).   BROWSE
  920. displays the help-screen shown in Figure 1:
  921.    Screen dumped: 21-JAN-1985 06:39:56
  922.    Image top: 0  bottom: 22
  923.  
  924.    +---------------------------------------------------------------------+
  925.    |BROWSE - Browsing program                                              |
  926.    |Commands:                                                            |
  927.    |    Q,Z  - Quit.                                                     |
  928.    |    ?    - display this message-screen                               |
  929.    |    _    - toggle scale/normal mode (alters arrow keys also)         |
  930.    |    T,E  - scroll to Top/End of file.                                |
  931.    |    F,B  - scroll Forward/Backward by a full-screen.                 |
  932.    |    U,D  - scroll Up/Down 1/2 screen (arrow).                        |
  933.    |    R,L  - scroll Right/Left 1/2 screen (arrow)                      |
  934.    |    H    - scroll left to Home-column (in scale-mode, move cursor up |
  935.    |    I,J  - (scale-mode) move cursor to next tab stop or to next end-o|
  936.    |    /,\  - search (if '\', backward) for a string                    |
  937.    |    N,P  - search for Next/Previous occurrence of string.            |
  938.    |    W    - refresh display Window                                    |
  939.    |    X    - aborts search/skip                                        |
  940.    |    <number> - Permit H,L/R scroll by specified number of columns,   |
  941.    |           or repeat of U,D,B,F,I or arrow keys                      |
  942.    |Special:                                                             |
  943.    |    K   - Copy screen to SNAPSHOT.CRT                                |
  944.    |    M   - Toggle MARK mode (active if /MARK option)                  |
  945.    |    O   - Toggle OVER mode (3 states if /OVER, else 2)               |
  946.    |    V   - Display current Version                                    |
  947.    |    ^   - Toggle MARK (DEBUG) modes                                  |
  948.    |FL.HLP;   Lines 1:23  Cols 1:71 (77)                                 |
  949.    +---------------------------------------------------------------------+
  950.  
  951.  
  952.                             Figure 1  Help Summary
  953.  
  954.  
  955.  
  956.  
  957. 2.4.3  Screen-Refresh
  958.  
  959. If your screen becomes corrupted  by  line  noise,  or  by  unexpected  system
  960. messages,  you  may direct BROWSE to refresh the screen.  The W command causes
  961. BROWSE to re-read the current page and then redisplay it.   A  CTRL/W  may  be
  962. given  at  any  time  (even while entering a search target), and refreshes the
  963. screen without re-reading the page.  The re-read operation is provided to make
  964. BROWSE cleaner:
  965.  
  966.     o   If you have directed BROWSE to display the help-screen, the W  command
  967.         will redisplay the file, rather than the help-screen.
  968.  
  969.     o   If you are using the M-command to display  record  marks,  BROWSE  may
  970.         discover  in  the  middle of a page that the file actually has records
  971.         with embedded carriage control.  The prefix jumps, from two columns of
  972. BROWSE COMMANDS                                                       Page 2-8
  973.  
  974.  
  975.         numbers,  to  four.   Requiring  BROWSE  to  read  each  page first to
  976.         determine this case would make it slower.  The W command re-reads  the
  977.         page and makes the prefix columns all the same width.
  978.  
  979.  
  980.  
  981. 2.4.4  Screen-Dump
  982.  
  983. You may obtain a copy of the screen contents by  using  the  K  command  (also
  984. CTRL/K).   All  of  the  figures  in  this  document were generated using this
  985. facility.
  986.  
  987. When you issue a screen-dump command, the screen driver makes a  copy  of  the
  988. current screen and writes it to a file:
  989.  
  990.         SYS$LOGIN:SNAPSHOT.CRT
  991.  
  992. When you exit from  BROWSE,  this  file  is  closed  and  you  may  print  it.
  993. Highlighting is represented in the snapshot-file by underlining.  The time and
  994. date of the snapshot are written to the file as well.  Each  time  you  invoke
  995. the screen dump, BROWSE informs you of how many times you have done so.
  996.  
  997. The CTRL/K screen dump is recognized at all times by BROWSE.  The  K  command,
  998. of course, is not recognized during prompts.
  999.  
  1000.  
  1001.  
  1002. 2.4.5  Version
  1003.  
  1004. Typing a V (also CTRL/V) causes BROWSE to display its version  number  in  the
  1005. status line.
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.                                   CHAPTER 3
  1019.  
  1020.                                INVOKING BROWSE
  1021.  
  1022.  
  1023.  
  1024. To run BROWSE, type the DCL command "BROWSE", followed by the name of the file
  1025. which  you  wish  to  browse.   No default filetype is used.  For example, the
  1026. command
  1027.  
  1028.         BROWSE XYZ
  1029.  
  1030. is equivalent to
  1031.  
  1032.         BROWSE XYZ.
  1033.  
  1034. BROWSE recognizes several options, which you may supply in any order:
  1035.  
  1036.     /BG
  1037.         The BitGraph terminal is VT100-compatible, but in its native  mode  it
  1038.         displays  65 lines on the screen.  The VMS terminal driver coerces the
  1039.         BitGraph to VT100 mode when BROWSE is invoked.  To run the BitGraph in
  1040.         native mode, use the /BG option.  This restores the terminal to native
  1041.         mode after the terminal driver has set it to VT100 mode.
  1042.  
  1043.         This option may not be used if BROWSE is called from FLIST, since  the
  1044.         screen buffer has already been allocated.
  1045.  
  1046.     /MARKS
  1047.         The /MARKS option directs BROWSE to show the file address  and  number
  1048.         of  each record in the input file.  The resulting prefix-display (file
  1049.         address and record  number)  may  be  toggled  on  and  off  with  the
  1050.         M-command.
  1051.  
  1052.         The /JOIN and /SQUEEZE options may alter the displayed  record  number
  1053.         from  the  true  value  seen  by  VMS.   The file address, however, is
  1054.         unaffected.
  1055.  
  1056.     /NOJOIN
  1057.         BROWSE examines the record attributes of your file.  If  it  does  not
  1058.         have  the  carriage-control  attribute,  then BROWSE assumes this is a
  1059.         file with embedded carriage-control characters such as  that  produced
  1060.         by  RUNOFF.   For  this  case, the JOIN option is, by default, active.
  1061.         When JOIN is active, BROWSE joins together records which  do  not  end
  1062.         with  a LINE-FEED, so that overstrikes constructed using RETURN may be
  1063.         shown on a single display line.
  1064. INVOKING BROWSE                                                       Page 3-2
  1065.  
  1066.  
  1067.         To disable this mode (and see the true record structure  of  a  binary
  1068.         file, for instance), use the /NOJOIN command.
  1069.  
  1070.     /OVER
  1071.         If no value is specified, /OVER initially places BROWSE in  a  display
  1072.         mode  where  backspace, RETURN and TAB are shown respectively as "^H",
  1073.         "^M" and "^I", rather than used as  carriage  control.   This  may  be
  1074.         toggled with the O-command.
  1075.  
  1076.         If the value 2 is given (e.g.,  "/OVER:2"),  then  BROWSE  treats  the
  1077.         O-command as a three-state toggle.  The third state causes all control
  1078.         characters to be shown as ".".
  1079.  
  1080.     /SQUEEZE
  1081.         Normally BROWSE displays your file exactly as it really is.   However,
  1082.         formatted  files  (such as those produced by RUNOFF) may contain a lot
  1083.         of blank lines.  The /SQUEEZE option directs BROWSE to combine into  a
  1084.         single  "record"  sequences  of  records which contain only whitespace
  1085.         characters (e.g., space, TAB, RETURN).
  1086.  
  1087.         It does not affect the (very rare) cases  in  which  a  single  record
  1088.         contains   a   sequence   of   LINE-FEED  characters  embedded  within
  1089.         non-whitespace characters.
  1090.  
  1091.     /TRIM
  1092.         Depending on the current state of  ruler-mode,  the  J-command  causes
  1093.         BROWSE to move the cursor to the next end-of-line, or to simply scroll
  1094.         to put the rightmost  end-of-line  on  the  screen.   BROWSE  normally
  1095.         counts  trailing  blanks.   They are, after all, part of the file.  To
  1096.         cause BROWSE to ignore trailing blanks, use the /TRIM option.
  1097.  
  1098.     /WIDE
  1099.         The /WIDE option tells BROWSE to assume that your terminal  is  really
  1100.         set  to  132-column  mode,  even  though  you  have  told  VMS  (via a
  1101.         "SET TERMINAL") that it is not.
  1102.  
  1103.         This option may not be used if BROWSE is called from FLIST, since  the
  1104.         screen buffer has already been allocated.
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.                                   APPENDIX A
  1118.  
  1119.                                COMMAND SUMMARY
  1120.  
  1121.  
  1122.  
  1123. BROWSE
  1124.  
  1125.   BROWSE is a versatile browsing  program.   It  permits  left/right  up/down
  1126.   scrolling   and   a   variety   of  display  formats.   Most  commands  are
  1127.   single-character.  It is case-independent (maps the alphabet to the set  of
  1128.   control characters).
  1129.  
  1130.   Format:
  1131.  
  1132.         BROWSE filespec [options]
  1133.  
  1134.  
  1135. Options:
  1136.  
  1137.   /BG        Initialize a Bitgraph terminal to permit BROWSE to  present  a
  1138.              65-line display.
  1139.   /COMMAND   Read commands from a file  (default  is  BROWSE.CMD,  in  your
  1140.              login directory), resume interactively on end-of-file.
  1141.   /JOIN      The JOIN option  directs  BROWSE  to  join  (in  the  display)
  1142.              records  which  do  not  end in either line-feed or form-feed.
  1143.              Normally, one or more display lines is used for each record.
  1144.   /MARKS     The MARKS option directs BROWSE to show the  file-address  and
  1145.              record-number  of each record.  Records containing an embedded
  1146.              line-feed are split across more than one display line.  If the
  1147.              file  contains  records  split  in  this manner, both the line
  1148.              number (modulo 100) and record number  are  displayed  by  the
  1149.              MARKS option.
  1150.   /OVER      The OVER option directs BROWSE to show non-printing characters
  1151.              and  to  unwrap  overstrikes.   If  /OVER=2  is specified, all
  1152.              nonprinting characters are shown as ".".
  1153.   /SQUEEZE   The SQUEEZE option directs BROWSE  to  discard  blank  records
  1154.              when  they follow other blank records.  This squeezes out most
  1155.              blank lines.
  1156.   /TRIM      The TRIM option directs BROWSE to omit trailing blanks in  the
  1157.              J-command (jump to next end-of-line).
  1158.   /WIDE      If WIDE is  set,  BROWSE  assumes  that  the  terminal  is  in
  1159.              132-column  mode,  even  though  no  SET TERMINAL was done for
  1160.              this.
  1161.  
  1162. Quit:
  1163. COMMAND SUMMARY                                                       Page A-2
  1164.  
  1165.  
  1166.   Exit from BROWSE by typing Q.
  1167.  
  1168. Help:
  1169.   A help-screen is displayed after typing "?" or PF2 (cf: EDT).
  1170.  
  1171. Scrolling:
  1172.   T          scroll to top of file.
  1173.   E          scroll to end of file.
  1174.   F          scroll forward by a full-screen (space).
  1175.   B          scroll backward by a full-screen.
  1176.   U          scroll up by a 1/2 screen (up-arrow).
  1177.   D          scroll down by a 1/2 screen (down-arrow).
  1178.   L          scroll left 1/2 screen (left-arrow).
  1179.   R          scroll right 1/2 screen (right-arrow).
  1180.   I          in ruler-mode, move cursor to next tab stop
  1181.   J          in ruler-mode, move cursor to  next  end-of-line.   Otherwise,
  1182.              scroll   left/right  to  put  the  end  of  the  longest  line
  1183.              on-screen.
  1184.   H          scroll left to Home-column (or to  absolute  column  given  by
  1185.              argument).
  1186.   {number}   Set  column  for  H,  number  of  columns  for  L  or  R,   or
  1187.              repeat-factor for other scrolling commands.
  1188.  
  1189. Searching:
  1190.   /          search for a string
  1191.   \          search backward for a string
  1192.   N          search for next occurrence of string.
  1193.   P          search for previous occurrence of string.
  1194.   CTRL/X     aborts search/skip.
  1195.  
  1196. Miscellaneous:
  1197.   K          Copy screen to SNAPSHOT.CRT
  1198.   M          Toggle MARK mode (active if /MARK option)
  1199.   O          Toggle OVER mode (3 states if /OVER, else 2)
  1200.   V          Display current version
  1201.   ^          Toggle MARK mode (even if /NOMARK).
  1202.   _          Toggle "ruler-mode".  The arrow keys move the cursor directly.
  1203.              The line and column number are continually displayed.
  1204.   W          refresh display window
  1205.                                                           Page Index-1
  1206.  
  1207.  
  1208.                                 INDEX
  1209.  
  1210.  
  1211.  
  1212. Arrow keys                          Highlighting
  1213.   DOWN-ARROW, 2-2 to 2-3              Column-scale (see Ruler-mode),
  1214.   LEFT-ARROW, 2-3                         1-7
  1215.   RIGHT-ARROW, 2-3                    Overstruck text, 1-1, 1-3, 2-4
  1216.   UP-ARROW, 2-2 to 2-3                    to 2-5
  1217.                                       Screen dump, 2-8
  1218. B, backward, 2-1, A-2                 Searching, 1-1 to 1-2, 2-4
  1219. /BG qualifier, 3-1, A-1
  1220.                                     I, tab, 2-3, A-2
  1221. /COMMAND qualifier, A-1
  1222. Control characters                  J, jump to end-of-line, 2-2 to
  1223.   Backspace, see CTRL/H                 2-3, A-2
  1224.   LINE-FEED, see CTRL/J             /JOIN qualifier, 3-1, A-1
  1225.   RETURN, see CTRL/M
  1226.   TAB, see CTRL/I                   K, copy screen, 2-8, A-2
  1227.   CTRL/B, 2-1
  1228.   CTRL/D, 2-1                       L, left, 2-2, A-2
  1229.   CTRL/E, 2-1
  1230.   CTRL/F, 2-1                       M, see Toggle-commands
  1231.   CTRL/H, 2-2 to 2-3                /MARKS qualifier, 2-6, 3-1, A-1
  1232.   CTRL/I, 2-3
  1233.   CTRL/J, 2-2 to 2-3                N, next, 2-4, A-2
  1234.   CTRL/K, 2-8                       Number
  1235.   CTRL/L, 2-2                         Columns, 2-3, A-2
  1236.   CTRL/M, 2-6                         Repeat count, 2-2 to 2-3, A-2
  1237.   CTRL/N, 2-4
  1238.   CTRL/P, 2-4                       O, see Toggle-commands
  1239.   CTRL/R, 2-2                       /OVER qualifier, 3-2, A-1
  1240.   CTRL/T, 2-1
  1241.   CTRL/U, 2-1, 2-4                  P, previous, 2-4, A-2
  1242.   CTRL/V, 2-8                       PF2, help, 2-7, A-2
  1243.   CTRL/W, 2-7
  1244.   CTRL/X, 2-4                       Q, quit, 2-6, A-1
  1245.   CTRL/Z, 2-6
  1246.   Differences from noncontrol       R, right, 2-2, A-2
  1247.     CTRL/K, 2-8                     Ruler-mode, 1-1, 1-7, 2-3 to 2-4
  1248.     CTRL/W, 2-7
  1249.   Noncommand                        "\", search backward, 2-4, A-2
  1250.     CTRL/O, 2-5                     "/", search forward, 2-4, A-2
  1251.     CTRL/Q, 2-6                     /SQUEEZE qualifier, 3-1 to 3-2,
  1252. CTRL/U, abort input, 2-4                A-1
  1253. CTRL/X, abort input, 2-4
  1254.                                     T, top, 2-1, A-2
  1255. D, down, 2-1, A-2                   Toggle-commands
  1256.                                       M, mark (file-address), 2-6 to
  1257. E, end, 2-1, A-2                          2-7, A-2
  1258.                                       O, overstrikes, 1-4, 2-5, A-2
  1259. F, forward, 2-1, A-2                  "_", Ruler-mode, 2-3, A-2
  1260.                                       "^", Set temporary MARK-mode,
  1261. H, home, 2-2 to 2-3, A-2                  2-6, A-2
  1262. "?", help, 2-7, A-2                 /TRIM qualifier, 3-2, A-1
  1263.                                                           Page Index-2
  1264.  
  1265.  
  1266. U, up, 2-1, A-2                     /WIDE qualifier, 3-2, A-1
  1267.  
  1268. V, version, 2-8, A-2                X, aborting I/O, 2-2, 2-5, A-2
  1269.  
  1270. W, window refresh, 2-7, A-2         Z, end-of-input (quit), 2-6
  1271.