forked from joshaw/slmenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslmenu.1
65 lines (65 loc) · 1.78 KB
/
slmenu.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
.TH SLMENU 1 slmenu\-VERSION
.SH NAME
slmenu \- single line menu
.SH SYNOPSIS
.B slmenu
.RB [ \-b ]
.RB [ \-t ]
.RB [ \-i ]
.RB [ \-l
.IR lines ]
.RB [ \-p
.IR prompt ]
.RB [ \-v ]
.SH DESCRIPTION
.B slmenu
is a dynamic menu for the console, based on the wonderful
.IR dmenu (1).
It also manages huge numbers of user\-defined menu items efficiently.
.P
slmenu reads a list of newline\-separated items from stdin and creates a menu.
Then it re-opens the tty and prompts for user input.
When the user selects an item or enters any text and presses Return, their
choice is printed to stdout and slmenu terminates.
The user interface is drawn in stderr, so it does not interfere with the
result.
.SH OPTIONS
.TP
.B \-b " or " -t
slmenu appears at the bottom (\-b) or top (\-t) of the terminal. By default,
slmenu appears in the current line.
.TP
.B \-i
slmenu matches menu items case insensitively.
.TP
.BI \-l " lines"
puts slmenu in multiline mode and chooses the number of lines to display
.TP
.BI \-p " prompt"
defines the prompt to be displayed to the left of the input field.
.TP
.B \-v
prints version information to stdout, then exits.
.SH USAGE
slmenu is completely controlled by the keyboard. Besides standard Unix line
editing and item selection (arrow keys, page up/down, home and end), the
following keys are recognized:
.TP
.B Tab (Ctrl\-i)
Select the next entry in the list of matches.
.TP
.B Shift-Tab
Select the previous entry in the list of matches.
.TP
.B Return (Ctrl\-j " or " Ctrl\-m)
Confirm selection. Prints the selected item to stdout and exits, returning
success.
.TP
.B Ctrl\-\] " or " Ctrl\-\\\\
Confirm input. Prints the input text to stdout and exits, returning success.
.TP
.B Escape\-Escape (Ctrl\-c)
Exit without selecting an item, returning failure.
.SH SEE ALSO
.IR dmenu (1),
.IR sandy (1),