Horizontal scroll in pg or more like function

Horizontal scroll in pg or more like function

Post by Super us » Wed, 11 Mar 1992 08:00:28



We are looking for a feature that anyone knows about that uses 'pg' or 'more'
like syntax and actions but also allows for horizontal scrolling of greater
than 80 columns of text.  We would like this to work at the prompt level.
 
 
 

Horizontal scroll in pg or more like function

Post by John E. Davi » Wed, 11 Mar 1992 16:19:47


In article <8...@devl3.UUCP> r...@devl3.UUCP (Super user) writes:

   We are looking for a feature that anyone knows about that uses 'pg' or
   'more' like syntax and actions but also allows for horizontal scrolling
   of greater than 80 columns of text.  We would like this to work at the
   prompt level.

Try MOST available via anonymous ftp from pacific.mps.ohio-state.edu in the
tmp directory.  It runs under VMS, ultrix, and sun.  It scrolls left and
right, supports multiple windows, reads binary files, selective display,
scroll locked windows, underlining, highlighting, etc...  Screen updating is
much faster than more/less.

Here is the documentation:

MOST                                                                9-1-91

NAME

     most - browse or page through a text file

SYNOPSIS

    most [ -bstvw ] [ +linenumber ] [+c][+d] [ +/string ] [ filename ... ]

DESCRIPTION

     MOST is a paging program that displays, one windowful at a time, the
     contents of a file on a vtxxx compatable terminal.   It pauses after
     each windowful and prints in  the window status  line the file name,
     current  line  number,  and  the  percentage   of  the file   so far
     displayed.

     Unlike other paging   programs, MOST is  capable of  displaying   an
     arbitrary number of windows as long as each window occupies at least
     two screen lines.  Each  window  may  contain  the same  file  or  a
     different file.  In addition,  each  window has its  own mode.   For
     example, one window may display a  file with its lines wrapped while
     another amy   be truncating  the lines.   Windows  may   be `locked'
     together in the sence that if one of the locked windows scrolls, all
     locked windows will scroll.  MOST is also  capable of ignoring lines
     that are indented beyond  a  user specified value.   This  is useful
     when viewing  computer programs to  pick  out  gross features of the
     code.  See the `:o' command for a description of this feature.

     In addition to displaying ordinary text files, MOST can also display
     binary files as well as files with arbitrary ascii characters.  When
     a file is read into  a buffer, MOST  examines the first  32 bytes of
     the file to determine if the file is a binary file and then switches
     to the appropriate mode.  However, this feature may be disabled with
     the  -k option.  See the  description  of the  -b,   -k,  -v. and -t
     options for further details.

     Text files  may contain  combinations   of underscore and  backspace
     characters causing a printer  to underline or overstrike.  When MOST
     recognizes   this, it inserts the  appropriate   escape sequences to
     achieve these the desired effect on vtxxx compatable terminals.   In
     addition, some files cause the printer to overstrike some characters
     by embedding carriage return  characters  in  the middle of a  line.
     When this occurs, MOST displays the ovestruck character with  a bold
     attribute.  This feature  facilitates the reading  of unix man pages
     or a   document produced by RUNOFF.   In   particular,  viewing this
     document with MOST should illustrate this behavior provided that the
     underline characters have not been stripped.  This may be turned off
     with the -v option.

     By  default, lines with more  characters than the terminal width are
     not wrapped but are instead truncated.  When truncation occurs, this
     is indicated by a  `$'  in  the  far  right column of   the terminal
     screen.  The  RIGHT and LEFT  arrow keys  may be used  to view lines
     which extend past the margins of  the  screen.  The -w option may be
     used to over ride   this  feature.  When  a  window is  wrapped, the
     character `\' will appear at the right edge of the window.

     Commands are listed below.

OPTIONS

     -b   binary mode.  Use this switch when you  want to view files
          containing  8 bit characters.  MOST will  display the file
          16 bytes per line in hexidecimal notation.  A typical line
          looks like:

           01000000 40001575 9C23A020 4000168D     ....@..u.#. @...

          When used with the -v option, the same line looks like:

           ^A^@^@^@  @^@^U u 9C #A0    @^@^V8D     ....@..u.#. @...

     -k   `Kanji' option.  Ordinarily, MOST will go into binary
          mode if the file consists of non-ascii characters.
          Sometimes this feature is not desirable since some
          terminals have a special interpretation for eight bit
          characters.  The -k option turns off the automatic
          sensing.

     -s   Squeeze.  Replace multiple blank lines  with  a  single
          blank line.

     -v   Display control characters as in `^A' for control A.
          Normally MOST does not interpret control characters.

     -t   Display tabs as `^I'.  This option is meaningful only when
          used with the -v option.

     +linenumber
          Start up at linenumber.

     +c   Make search case sensitive.  By default, they are not.

     +d   This switch should only be used if you want  the option to
          delete a file while  viewing it.  This  makes it easier to
          clean unwanted  files  out  of a  directory.   The file is
          deleted with the interactive  key sequence  `:D' and
          then confirming with `y'.

     +/string
          Start up at the line containing the first occurence of string.

USAGE
  Environment

    There are currently three environment variables that MOST looks for:

       MOST_SWITCHES

         This variable   sets commonly used   switches.  For example,
         some people prefer to  use MOST  with the  -s option so that
         excess  blank  lines are   not  displayed.  On  VMS this  is
         normally done done in the login.com through the line:

                         $ define MOST_SWITCHES "-s"

      MOST_EDITOR (VMS only)

         Set this logical to one of three values: EDT, TPU, or EMACS.
         The default is EDT.  MOST does not spawn an editor.  Rather,
         it uses callable EDT  and TPU to  perform the  editing task.
         Since VMS does not support callable EMACS, MOST will attempt
         to attach to a  kept EMACS.  For  this  case, MOST looks for
         the logical name EMACS_PID and attaches  to the process with
         that pid.  It then defines  the logicals EMACS_FILE_NAME and
         EMACS_FILE_LINE which EMACS can check upon attaching to it.

      MOST_HELP

         This variable must be setup  to  point to the MOST helpfile.
         Without this MOST will not  be able  to provide online help.
         However, this behavior may be changed  at compile time.  See
         the makefile for more information.

  Command Usage

     The commands take effect immediately; it is  not necessary to type a
     carriage return.

     In the  following commands, i  is   a  numerical  argument (1  by
     default).

     SPACE, CONTROL-D, NEXT_SCREEN

               Display another windowful, or jump i windowfuls
               if i is specified.

     RETURN, DOWN_ARROW, V, CONTROL-N

               Display another line, or i more lines, if
               specified.

     UP_ARROW, ^, CONTROL-P

               Display previous line,  or i  previous lines, if
               specified.

     RIGHT_ARROW, TAB, >

               Scroll window left 60i columns to view lines that are
               beyond the right margin of the window.

     LEFT_ARROW, CONTROL-B, <

               Scroll window right 60i columns to view lines that are
               beyond the left margin of the window.

     U, CONTROL-U, DELETE, PREV_SCREEN

               Skip back   i   windowfuls  and   then  print  a
               windowful.

     T, ESCAPE <
               Move to the top of the buffer.

     B, ESCAPE >
               Move to the end of the buffer.

     R, CONTROL-R

               Redraw the window.

     J, G      If i is not specified, then prompt for a line
               number then jump to that line otherwise just
               jump to line i.

     %         If i is not specified, then prompt for a
               percent number then jump to that percent of the
               file otherwise just jump to i percent of the
               file.

     W, w      If the current screen width is 80, make it 132
               and vica-versa.  For other values, this command is
               ignored.

     Q, CONTROL-X CONTROL-C, CONTROL-K E

               Exit from MOST.  On VMS, ^Z also exits.

     h, CONTROL-H, HELP

               Help.  Give   a  description of  all    the MOST
               commands.     The    MOST  environment  variable
               MHELPCHES must be set for this to be meaningful.

     f,/, CONTROL-F, FIND

               Prompt for a string and search  forward from the
               current line for  ith distinct  line  containing
               the string.  CONTROL-G aborts.

     ?         Prompt for a string and search backward  for the
               ith  distinct   line  containing  the    string.
               CONTROL-G aborts.

     n         Search  for the   next   i lines  containing  an
               occurrence of   the last  search string   in the
               direction of the previous search.

     m, SELECT, CONTROL-@, CONTROL-K M

               Set a mark on the current line for later reference.

     INSERT_HERE, CONTROL-X CONTROL-X, COMMA, CONTROL-K RETURN

               Set a mark on the current line but return to
               previous mark.  This allows the user to toggle
               back and forth between two positions in the
               file.

     l, L      Toggle locking  for this window.   The window is
...

read more »