File: sel.1

package info (click to toggle)
sel 0.08.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 128 kB
  • ctags: 171
  • sloc: ansic: 1,545; makefile: 69; sh: 45
file content (376 lines) | stat: -rw-r--r-- 6,639 bytes parent folder | download | duplicates (2)
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
.TH SEL 1 "FEBRUARY 2001"
.UC 4

.SH NAME
sel \- Fullscreen file-selection and execution tool

.SH SYNOPSIS
.B sel
[
.I options
]
[
.I File-list
]

.SH DESCRIPTION
sel displays a listing of files like a file-manager. You can move around
using the arrow-keys and run a command given on the command-line on the
selected file with the <RETURN> - key. If you've installed the terminfo-
library delivered with ncurses, sel will use colors.

.SH OPTIONS
Short Options can be combined and strings like -aflq are allowed. An option
that requires an argument has to be the last option in the string and the
argument must follow (-aflqm "*.c"). Available command line options are the
following:

.TP
-a
Ask before executing a command

.TP
-b headline
Text-string to display as headline. This might be useful when you use sel
as file-selector in a shell-script to tell the user what to do. Use inverted
commas, for example -b "Choose filename".

.TP
-c command
Command to execute. '%' will be replaced by selected entry. You will need
to set this command into "" if it consists of more than one word, e.g.
"ls -l"

.TP
-C Filename-Substitutor (default is "%")

.TP
-d path
Start directory

.TP
-f
Use complete (absolute) filename with full path in executed commands

.TP
-h
Display some help about availiable commandline-options

.TP
-l
Long file-listing with uid, gid, size, date and permissions

.TP
-m mask
Filemask to limit the display to a certain group of files. For example,
-m "*.c" displays only your c-sources. Don't forget the inverted commas
("") to protect the mask from the shell!

.TP
-t type
File-type filter-string. Combinations such as -t fdl are allowed. The
following filetypes are availiable:
.RS

.IP f
regular file
.IP d
directory
.IP l
symbolic link
.IP b
block device
.IP c
character device
.IP p
named pipe (FIFO)
.IP s
socket
.RE

.TP
-w
Wait after executing a command

.TP
-s
Blank screen before executing a command

.TP
-q
Quit after executing a command

.TP
-u
Update directory after executing a command

.TP
--no-tagging
Don't allow tagging of files

.TP
--no-command-entry
Don't allow changing the command to be executed

.TP
--color-status_fg color-value
Set foreground-color of statusline. See list of availiable color-values below.

.TP
--color-status_bg color-value
Set background-color of statusline. See list of availiable color-values below.

.TP
--color-pointer-fg color-value
Set foreground-color of pointer. See list of availiable color-values below.

.TP
--color-pointer-bg color-value
Set background-color of pointer. See list of availiable color-values below.

.TP
--color-backgnd-fg color-value
Set background-color of file-list. See list of availiable color-values below.

.TP
--color-backgnd-bg color-value
Set foreground-color of file-list. See list of availiable color-values below.

.TP
--color-msg-fg color-value
Set foreground-color of warnings. See list of availiable color-values below.

.TP
--color-msg-bg color-value
Set background-color of warnings. See list of availiable color-values below.

.TP
--color-backgnd-tag-fg color-value
Set foreground-color of tagged file. See list of availiable color-values below.

.TP
--color-backgnd-tag-bg color-value
Set background-color of tagged file. See list of availiable color-values below.

.TP
--color-pointer-tag-fg color-value
Set foreground-color of tagged pointer. See list of availiable color-values below.

.TP
--color-pointer-tag-bg color-value
Set background-color of tagged pointer. See list of availiable color-values below.

.TP
Availiable color-values are:

.RS
.IP black
.IP red
.IP green
.IP yellow
.IP blue
.IP magenta
.IP cyan
.IP white
.RE

.SH KEYBOARD COMMANDS
While running sel, you can use the following keyboard-commands. When there
is listed more than one keystroke, you can choose one of them.
.NF

.TP
Enter
Select an entry and execute command. If selected entry is a directory, cd there

.TP
Blank
Select an entry and execute command. Don't cd to directories but execute
command on it

.TP
+
Tag marked file

.TP
-
Untag marked file

.TP
*
Select all files

.TP
#
Unselect all files

.TP
!
Invert Selection

.TP
x
Run command on tagged files (file by file)

.TP
X
Run command on tagged files (all in a single run)

.TP
c
Enter a new command

.TP
C
Enter a new character as filename-substitution (default %)

.TP
Left
cd ..

.TP
Right
cd to selected directory, no reaction on selected files

.TP
Up p
One up (previous entry)

.TP
PageUp P
One page up (previous page)

.TP
Down n
One down (next entry)

.TP
PageDown N
One page down (next page)

.TP
t
Jump to the top

.TP
b
Jump to the bottom

.TP
d
Go back to start-directory

.TP
r
Return to last directory

.TP
R
Change to root-directory

.TP
H ~
Go to your home-directory

.TP
U
Update current directory immediately

.TP
/
Find file (Simple Substring search)

.TP
a
Toggle ask before executing a command (Default off)

.TP
l
Toggle long/short listing (Default short)

.TP
Q
Toggle exit after executing a command (Default off)

.TP
s
Toggle blank screen before executing a command (Default off)

.TP
u
Toggle update directory after executing a command (Default off)

.TP
w
Toggle wait after executing a command (Default off)

.TP
h
Show help

.TP
?
Display current settings

.TP
q
Exit sel

.SH RETURN CODES
.TP
0
Ok, executed the given command

.TP
1
Ok, leaving without having executed the command (hit q)

.TP
10
Ooops, internal error

.TP
11
Terminal error

.TP
20
Commandline-error

.TP
30
Error initializing signal-handler

.SH AUTHOR
.NF
Thomas Kluge <thomas@darkstar.rhein-neckar.de>
.PP
Web-Site: http://www.rhein-neckar.de/~darkstar/
.FI

.SH BUGS
.NF
That's alpha-software, so be warned that there may still be bugs. Be sure
to have it tested carefully before you use it to submit "dangerous" commands
like rm, mv, chmod etc. If you find a bug, please report it to
<thomas@darkstar.rhein-neckar.de> as i'll try to fix it immediately.
.FI

.SH COPYRIGHT
.NF
Copyright 1997, 1998 by Thomas Kluge.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
.FI