document mingw linker fix and close associated bug
[debian/gzip] / zmore.1
1 .TH ZMORE 1
2 .SH NAME
3 zmore \- file perusal filter for crt viewing of compressed text
4 .SH SYNOPSIS
5 .B zmore
6 [ name ...  ]
7 .SH DESCRIPTION
8 .I  Zmore
9 is a filter which allows examination of compressed or plain text files
10 one screenful at a time on a soft-copy terminal.
11 .I zmore
12 works on files compressed with
13 .IR compress ,
14 .I pack
15 or
16 .IR gzip ,
17 and also on uncompressed files.
18 If a file does not exist,
19 .I zmore
20 looks for a file of the same name with the addition of a .gz, .z or .Z suffix.
21 .PP
22 .I Zmore
23 normally pauses after each screenful, printing --More--
24 at the bottom of the screen.
25 If the user then types a carriage return, one more line is displayed.
26 If the user hits a space,
27 another screenful is displayed.  Other possibilities are enumerated later.
28 .PP
29 .I Zmore
30 looks in the file
31 .I /etc/termcap
32 to determine terminal characteristics,
33 and to determine the default window size.
34 On a terminal capable of displaying 24 lines,
35 the default window size is 22 lines.
36 To use a pager other than the default
37 .IR more ,
38 set environment variable PAGER to the name of the desired program, such as
39 .IR less .
40 .PP
41 Other sequences which may be typed when
42 .I zmore
43 pauses, and their effects, are as follows (\fIi\fP is an optional integer
44 argument, defaulting to 1) :
45 .PP
46 .IP \fIi\^\fP<space>
47 display
48 .I i
49 more lines, (or another screenful if no argument is given)
50 .PP
51 .IP ^D
52 display 11 more lines (a ``scroll'').
53 If
54 .I i
55 is given, then the scroll size is set to \fIi\fP.
56 .PP
57 .IP d
58 same as ^D (control-D)
59 .PP
60 .IP \fIi\^\fPz
61 same as typing a space except that \fIi\fP, if present, becomes the new
62 window size.
63 .PP
64 .IP \fIi\^\fPs
65 skip \fIi\fP lines and print a screenful of lines
66 .PP
67 .IP \fIi\^\fPf
68 skip \fIi\fP screenfuls and print a screenful of lines
69 .PP
70 .IP "q or Q"
71 Quit.
72 .PP
73 .IP =
74 Display the current line number.
75 .PP
76 .IP \fIi\fP/expr
77 search for the \fIi\^\fP-th occurrence of the regular expression \fIexpr.\fP
78 The user's erase and kill characters may be used to edit the regular
79 expression.
80 Erasing back past the first column cancels the search command.
81 .PP
82 .IP \fIi\^\fPn
83 search for the \fIi\^\fP-th occurrence of the last regular expression entered.
84 .PP
85 .IP !command
86 invoke a shell with \fIcommand\fP.
87 The character `!' in "command" is replaced with the
88 previous shell command.  The sequence "\\!" is replaced by "!".
89 .PP
90 .IP ":q or :Q"
91 Quit
92 (same as q or Q).
93 .PP
94 .IP .
95 (dot) repeat the previous command.
96 .PP
97 The commands take effect immediately, i.e., it is not necessary to
98 type a carriage return.
99 Up to the time when the command character itself is given,
100 the user may hit the line kill character to cancel the numerical
101 argument being formed.
102 In addition, the user may hit the erase character to redisplay the
103 --More-- message.
104 .PP
105 At any time when output is being sent to the terminal, the user can
106 hit the quit key (normally control\-\\).
107 .I Zmore
108 will stop sending output, and will display the usual --More--
109 prompt.
110 The user may then enter one of the above commands in the normal manner.
111 Unfortunately, some output is lost when this is done, due to the
112 fact that any characters waiting in the terminal's output queue
113 are flushed when the quit signal occurs.
114 .PP
115 The terminal is set to
116 .I noecho
117 mode by this program so that the output can be continuous.
118 What you type will thus not show on your terminal, except for the / and !
119 commands.
120 .PP
121 If the standard output is not a teletype, then
122 .I zmore
123 acts just like
124 .IR zcat ,
125 except that a header is printed before each file
126 if there is more than one file.
127 .SH FILES
128 .TP
129 /etc/termcap
130 Terminal data base
131 .SH "SEE ALSO"
132 more(1), gzip(1), zdiff(1), zgrep(1), znew(1), zforce(1), gzexe(1)