[BACK]Return to more.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/more.1 between version 1.1 and 1.2

version 1.1, 2014/04/07 20:12:02 version 1.2, 2014/04/07 21:57:12
Line 43 
Line 43 
 .Op Fl t Ar tag  .Op Fl t Ar tag
 .Op Ar  .Op Ar
 .Sh DESCRIPTION  .Sh DESCRIPTION
 .Nm more  .Nm
 is a filter for paging through text one screenful at a time.  is a filter for paging through text one screenful at a time.
 It uses  It uses
 .Xr terminfo 3  .Xr terminfo 3
Line 107 
Line 107 
 .Fl s  .Fl s
 option causes  option causes
 consecutive blank lines to be squeezed into a single blank line.  consecutive blank lines to be squeezed into a single blank line.
 .It Fl t  .It Fl t Ar tag
 The  The
 .Fl t  .Fl t
 option, followed immediately by a tag, will edit the file  option, followed immediately by a tag, will edit the file
Line 118 
Line 118 
 .It Fl u  .It Fl u
 By default,  By default,
 .Nm  .Nm
 treats backspaces and  treats backspaces and CR-LF sequences specially.
 .Dv CR-LF  
 sequences specially.  
 Backspaces which appear adjacent to an underscore character are  Backspaces which appear adjacent to an underscore character are
 displayed as underlined text.  displayed as underlined text.
 Backspaces which appear between two identical characters are displayed  Backspaces which appear between two identical characters are displayed
 as emboldened text.  as emboldened text.
 .Dv CR-LF  CR-LF sequences are compressed to a single linefeed character.
 sequences are compressed to a single linefeed  
 character.  
 The  The
 .Fl u  .Fl u
 option causes backspaces to always be displayed as  option causes backspaces to always be displayed as
 control characters, i.e. as the two character sequence  control characters, i.e. as the two character sequence
 .Sq ^H ,  .Sq ^H ,
 and  and CR-LF to be left alone.
 .Dv CR-LF  .El
 to be left alone.  
 .Sh COMMANDS  .Sh COMMANDS
 Interactive commands for  Interactive commands for
 .Nm  .Nm
Line 144 
Line 139 
 Some commands may be preceded by a decimal number, called N in the  Some commands may be preceded by a decimal number, called N in the
 descriptions below.  descriptions below.
 In the following descriptions, ^X means control-X.  In the following descriptions, ^X means control-X.
 .Pp  
 .Bl -tag -width Ic  .Bl -tag -width Ic
 .It Ic h  .It Ic h
 Help: display a summary of these commands.  Help: display a summary of these commands.
Line 154 
Line 148 
 .No or  .No or
 .Ic f  .Ic f
 .No or  .No or
 .Ic \&^F  .Ic ^F
 .Xc  .Xc
 Scroll forward N lines, default one window.  Scroll forward N lines, default one window.
 If N is more than the screen size, only the final screenful is displayed.  If N is more than the screen size, only the final screenful is displayed.
 .It Ic b No or Ic \&^B  .It Ic b No or Ic ^B
 Scroll backward N lines, default one window (see option -z below).  Scroll backward N lines, default one window (see option -z below).
 If N is more than the screen size, only the final screenful is displayed.  If N is more than the screen size, only the final screenful is displayed.
 .It Ic j No or Ic RETURN  .It Ic j No or Ic RETURN
Line 167 
Line 161 
 .It Ic k  .It Ic k
 Scroll backward N lines, default 1.  Scroll backward N lines, default 1.
 The entire N lines are displayed, even if N is more than the screen size.  The entire N lines are displayed, even if N is more than the screen size.
 .It Ic d No or Ic \&^D  .It Ic d No or Ic ^D
 Scroll forward N lines, default one half of the screen size.  Scroll forward N lines, default one half of the screen size.
 If N is specified, it becomes the new default for  If N is specified, it becomes the new default for
 subsequent d and u commands.  subsequent d and u commands.
 .It Ic u No or Ic \&^U  .It Ic u No or Ic ^U
 Scroll backward N lines, default one half of the screen size.  Scroll backward N lines, default one half of the screen size.
 If N is specified, it becomes the new default for  If N is specified, it becomes the new default for
 subsequent d and u commands.  subsequent d and u commands.
Line 179 
Line 173 
 Go to line N in the file, default 1 (beginning of file).  Go to line N in the file, default 1 (beginning of file).
 .It Ic G  .It Ic G
 Go to line N in the file, default the end of the file.  Go to line N in the file, default the end of the file.
 .It Ic p No or Ic \&%  .It Ic p No or Ic %
 Go to a position N percent into the file.  Go to a position N percent into the file.
 N should be between 0 and 100.  N should be between 0 and 100.
 (This works if standard input is being read, but only if  (This works if standard input is being read, but only if
 .Nm  .Nm
 has already read to the end of the file.  has already read to the end of the file.
 It is always fast, but not always useful.)  It is always fast, but not always useful.)
 .It Ic r No or Ic \&^L  .It Ic r No or Ic ^L
 Repaint the screen.  Repaint the screen.
 .It Ic R  .It Ic R
 Repaint the screen, discarding any buffered input.  Repaint the screen, discarding any buffered input.
Line 194 
Line 188 
 .It Ic m  .It Ic m
 Followed by any lowercase letter,  Followed by any lowercase letter,
 marks the current position with that letter.  marks the current position with that letter.
 .It Ic \&'  .It Ic '
 (Single quote.)  (Single quote.)
 Followed by any lowercase letter, returns to the position which  Followed by any lowercase letter, returns to the position which
 was previously marked with that letter.  was previously marked with that letter.
Line 202 
Line 196 
 which the last "large" movement command was executed, or the  which the last "large" movement command was executed, or the
 beginning of the file if no such movements have occurred.  beginning of the file if no such movements have occurred.
 All marks are lost when a new file is examined.  All marks are lost when a new file is examined.
 .It Ic \&/ Ns Ar pattern  .It Ic / Ns Ar pattern
 Search forward in the file for the N-th line containing the pattern.  Search forward in the file for the N-th line containing the pattern.
 N defaults to 1.  N defaults to 1.
 The pattern is a regular expression, as recognized by  The pattern is a regular expression, as recognized by
 .Xr ed .  .Xr ed 1 .
 The search starts at the second line displayed.  The search starts at the second line displayed.
 .It Ic \&? Ns Ar pattern  .It Ic ?\& Ns Ar pattern
 Search backward in the file for the N-th line containing the pattern.  Search backward in the file for the N-th line containing the pattern.
 The search starts at the line immediately before the top line displayed.  The search starts at the line immediately before the top line displayed.
 .It Ic \&/\&! Ns Ar pattern  .It Ic /! Ns Ar pattern
 Like /, but the search is for the N-th line  Like /, but the search is for the N-th line
 which does NOT contain the pattern.  which does NOT contain the pattern.
 .It Ic \&?\&! Ns Ar pattern  .It Ic ?! Ns Ar pattern
 Like ?, but the search is for the N-th line  Like ?, but the search is for the N-th line
 which does NOT contain the pattern.  which does NOT contain the pattern.
 .It Ic n  .It Ic n
 Repeat previous search, for N-th line containing the last pattern  Repeat previous search, for N-th line containing the last pattern
 (or  (or NOT containing the last pattern,
 .Tn NOT  if the previous search was /! or ?!).
 containing the last pattern, if the previous search  
 was /! or ?!).  
 .It Ic N  .It Ic N
 Repeat previous search in the opposite direction,  Repeat previous search in the opposite direction,
 for N-th line containing the last pattern (or  for N-th line containing the last pattern
 .Tn NOT  (or NOT containing the last pattern,
 containing the last pattern, if the previous search  if the previous search was /! or ?!).
 was /! or ?!).  
 .It Ic E Ns Op Ar filename  .It Ic E Ns Op Ar filename
 Examine a new file.  Examine a new file.
 If the filename is missing, the "current" file (see the N and P commands  If the filename is missing, the "current" file (see the N and P commands
 below) from the list of files in the command line is re-examined.  below) from the list of files in the command line is re-examined.
 If the filename is a pound sign (#), the previously examined file is  If the filename is a pound sign (#), the previously examined file is
 re-examined.  re-examined.
 .It Ic \&:n  .It Ic :n
 Examine the next file (from the list of files given in the command line).  Examine the next file (from the list of files given in the command line).
 If a number N is specified (not to be confused with the command N),  If a number N is specified (not to be confused with the command N),
 the N-th next file is examined.  the N-th next file is examined.
 .It Ic P No or Ic \&:p  .It Ic P No or Ic :p
 Examine the previous file.  Examine the previous file.
 If a number N is specified, the N-th previous file is examined.  If a number N is specified, the N-th previous file is examined.
 .It Ic \&:t  .It Ic :t
 Go to supplied tag.  Go to supplied tag.
 .It Ic v  .It Ic v
 Invokes an editor to edit the current file being viewed.  Invokes an editor to edit the current file being viewed.
 The editor is taken from the environment variable  The editor is taken from the environment variable
 .Ev EDITOR ,  .Ev EDITOR ,
 or defaults to  or defaults to
 .Xr vi  1  .  .Xr vi 1 .
 .It Ic \&= No or Ic \&^G  .It Ic = No or Ic ^G
 These options print out the number of the file currently being displayed  These options print out the number of the file currently being displayed
 relative to the total number of files there are to display, the current  relative to the total number of files there are to display, the current
 line number, the current byte number and the total bytes to display, and  line number, the current byte number and the total bytes to display, and
Line 265 
Line 256 
 .It Xo  .It Xo
 .Ic q  .Ic q
 .No or  .No or
 .Ic \&:q  .Ic :q
 .No or  .No or
 .Ic ZZ  .Ic ZZ
 .Xc  .Xc
Line 329 
Line 320 
 The  The
 .Sq s  .Sq s
 command also has a different meaning.  command also has a different meaning.
 .Sh AUTHORS  
 .An Mark Nudelman Aq Mt markn@greenwoodsoftware.com  
 .Sh HISTORY  .Sh HISTORY
 A  A
 .Nm  .Nm
 command appeared in  command appeared in
 .Bx 3.0 .  .Bx 3.0 .
   .Sh AUTHORS
   .An Mark Nudelman Aq Mt markn@greenwoodsoftware.com

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2