-
Notifications
You must be signed in to change notification settings - Fork 1
/
bmore.1
320 lines (319 loc) · 6.21 KB
/
bmore.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
.TH BMORE 1 "30 Jan 2019"
.SH NAME
bmore \- browse through a binary file
.SH SYNOPSIS
.B bmore
[
.B \-acdir
] [
.B \-n \fIlines\fP
] [
.B \-w \fIcols\fP
] [
.B +\fIlinenumber\fP
] [
.B +/\fIASCII-pattern\fP
] [
.B +\\\\\fIHex-pattern\fP
] [
.I filename
\&.\|.\|. ]
.LP
.if n .ti +05i
.SH DESCRIPTION
.IX "bmore command" "" "\fLbmore\fP \(em browse binary file"
.IX "binary file, browse through" \fLbmore\fP
.IX file "browse bmore" "" "browse through binary\(em \fLbmore\fP"
.IX display "file by screenfuls \(em \fLbmore\fP"
.LP
.B more
is a filter that displays the contents of a binary
file
on the terminal, one screenful at a time. It normally pauses after
each screenful, and prints
.B --More--
at the bottom of the screen.
.B bmore
provides a two-line overlap between screens for continuity.
If
.B bmore
is reading from a file rather than a pipe, the percentage of
characters displayed so far is also shown.
.LP
.B bmore
scrolls up to display one more screen line in response to a
.SM RETURN
character; it displays another screenful in response to a
.SM SPACE
character. Other commands are listed below.
.LP
The screen is divided in three sections or panes:
The byte offset (extreme left), the hex pane (middle),
and an ascii pane (right) which shows as printable characters
those bytes in the hex pane.
On an 80 column terminal there will be sixteen hex values
and their ASCII values on each screen line.
Note that (as one would expect) the first byte has the offset \*(L'0\*(R' (zero).
.LP
.B bmore
sets the terminal
to
.I noecho
mode, so that the output can be continuous.
Commands that you type do not normally show up on your terminal,
except for the
.B /
,
.B \\\\
and
.B !
commands.
.LP
If the standard output is not a terminal,
.B more
acts just like
.BR cat (1V),
except that a header is printed before each file in a series.
.SH OPTIONS
.TP
.B \-a
ASCII mode: no hex representation of the contents. Non printable
characters are displayed as a dot (.)
.TP
.B \-c
Clear before displaying. Redrawing the screen instead of scrolling.
.TP
.B \-d
Display error messages rather than ringing the terminal bell if
an unrecognized command is used.
This is helpful for inexperienced users.
.TP
.B \-i
Ignore case for searching.
.TP
.B \-n \fIlines\fP
Displays the indicated number of \fIlines\fP in each screenful,
rather than the default (the number of lines in the terminal screen
less two).
.TP
.B \-r
Characters between 160 - 254 are displayed as "reverse video text" as used in
some legacy systems (Atari, Commodore, Apple II, etc).
.TP
.B \-w \fIcols\fP
Display number of \fIcols\fP in each line.
.TP
.BI + linenumber\fP
Start up at
.IR linenumber .
.TP
.BI +/ ASCII-pattern\fP
Start up at the line containing the regular expression
.IR pattern .
Note: unlike
editors, this construct should
.I not
end with a
.RB ` / '.
If it does, then the trailing slash is taken as a character in the
search pattern.
.SH USAGE
.SS Commands
.LP
The commands take effect immediately; it is not necessary to
type a carriage return.
Up to the time when the command character itself is given,
the user may type the line kill character to cancel the numerical
argument being formed.
In addition, the user may type the erase character to redisplay the
.RB ` "--More--(\fIxx\fP%)" '
message.
.LP
In the following commands,
.I i
is a numerical argument
.RB ( 1
by default).
.TP 10
.IR i \s-1SPACE\s0
Display another screenful, or
.I i
more lines if
.I i
is specified.
.TP
.IR i \s-1RETURN\s0
Display another line, or
.I i
more lines, if specified.
.TP
.IB i ^D
(\s-1CTRL\s0\-D)
Display (scroll down) 11 more lines.
.I i
is given, the scroll size is set to
.IR i\| .
.TP
.IR i d
Same as
.BR ^D .
.TP
.IB i z
Same as
.SM SPACE,
except that
.IR i\| ,
if present, becomes the new default number
of lines per screenful.
.TP
.IB i s
Skip
.I i\|
lines and then print a screenful.
.TP
.IB i f
Skip
.I i
screenfuls and then print a screenful.
.TP
.IB i ^B
(\s-1CTRL-B\s0)
Skip back
.I i
screenfuls and then print a screenful.
.TP
.I b
Same as
.B ^B
(\s-1CTRL-D\s0).
.TP
.B q
.PD 0
.TP
.B Q
.PD
Exit from
.BR more .
.TP
.B =
Display the current line number.
.TP
.B v
Drop into the
.BR bvi (1)
editor at the current offset of the current
file.
.TP
.B w
Drop into the
.BR bvi (1)
editor at the current offset of the current
file. Only the portion of the file displayed on the screen will be loaded.
.TP
.B h
Help. Give a description of all the
.B more
commands.
.TP
.IB i / pattern
Search for the
.IR i\| th
occurrence of the regular expression
.IR pattern .
Display the screenful starting at the file position
that contains the
.IR i\| th
match for the regular expression
.IR ASCII-pattern ,
or the end of a pipe, whichever comes first. If
.B bmore
is displaying a file and there is no such match, its position
in the file remains unchanged. Regular expressions can be
edited using erase and kill characters.
Erasing back past the first column cancels the search command.
.TP
.B \'
Single quote. Go to the point from which the last search started.
If no search has been performed in the current file,
go to the beginning of the file.
.TP
.BI ! command
Invoke a shell to execute
.IR command\| .
The characters
.B %
and
.BR ! ,
when used within
.I command
are replaced with the current filename
and the previous shell command,
respectively.
If there is no current filename,
.B %
is not expanded. Prepend a backslash to these characters to
escape expansion.
.TP
.IB i :n
Skip to the
.IR i\| th
next filename given in the command line,
or to the last filename in the list if
.I i
is out of range.
.TP
.IB i :p
Skip to the
.IR i\| th
previous filename given in the command line,
or to the first filename if
.I i
is out of range.
If given while
.B more
is positioned within a file, go to the
beginning of the file.
If
.B more
is reading from a pipe,
.B more
simply rings the terminal bell.
.br
.ne 2
.TP
.B :f
Display the current filename and offset number.
.br
.ne 5
.TP
.B :q
.PD 0
.TP
.B :Q
.PD
Exit from
.B bmore
(same as
.B q
or
.B Q ).
.TP
.B \&.
Dot. Repeat the previous command.
.SH FILES
.PD 0
.TP 20
.B /etc/termcap
terminal data base
.TP
.B /usr/local/share/bmore.help
help file
.PD
.SH "SEE ALSO"
.BR bvi (1),
.BR more (1)
.BR termcap (5)
.SH "AUTHOR"
.IX Header "AUTHOR"
bmore was developed by Gerhard Buergmann, Vienna, Austria
.BR \[email protected]\fR