forked from speedie/spmenu
Add -pt argument for setting pretext
This commit is contained in:
parent
7d1b58f431
commit
3f5c0b657b
|
@ -106,6 +106,9 @@ in the config files.
|
||||||
`-p, --prompt text`
|
`-p, --prompt text`
|
||||||
: Set spmenu prompt text to text
|
: Set spmenu prompt text to text
|
||||||
|
|
||||||
|
`-pt, --pretext text`
|
||||||
|
: Set spmenu pretext to text
|
||||||
|
|
||||||
`-It, --input text`
|
`-It, --input text`
|
||||||
: Set initial input text to text
|
: Set initial input text to text
|
||||||
|
|
||||||
|
|
|
@ -352,6 +352,8 @@ void readargs(int argc, char *argv[]) {
|
||||||
menuwidth = atoi(argv[++i]);
|
menuwidth = atoi(argv[++i]);
|
||||||
else if (!strcmp(argv[i], "-p") || (!strcmp(argv[i], "--prompt"))) // adds prompt to left of input field
|
else if (!strcmp(argv[i], "-p") || (!strcmp(argv[i], "--prompt"))) // adds prompt to left of input field
|
||||||
prompt = argv[++i];
|
prompt = argv[++i];
|
||||||
|
else if (!strcmp(argv[i], "-pt") || (!strcmp(argv[i], "--pretext"))) // adds pretext
|
||||||
|
pretext = argv[++i];
|
||||||
else if (!strcmp(argv[i], "-It") || (!strcmp(argv[i], "--input"))) // specify initial text
|
else if (!strcmp(argv[i], "-It") || (!strcmp(argv[i], "--input"))) // specify initial text
|
||||||
input = argv[++i];
|
input = argv[++i];
|
||||||
else if (!strcmp(argv[i], "-fn") || (!strcmp(argv[i], "--font"))) // font or font set
|
else if (!strcmp(argv[i], "-fn") || (!strcmp(argv[i], "--font"))) // font or font set
|
||||||
|
@ -623,6 +625,7 @@ void usage(int status) {
|
||||||
"spmenu -P, --password Hide characters\n"
|
"spmenu -P, --password Hide characters\n"
|
||||||
"spmenu -nP, --no-password Don't hide characters\n"
|
"spmenu -nP, --no-password Don't hide characters\n"
|
||||||
"spmenu -p, --prompt <text> Set spmenu prompt text to <text>\n"
|
"spmenu -p, --prompt <text> Set spmenu prompt text to <text>\n"
|
||||||
|
"spmenu -pt, --pretext <text> Set spmenu pretext to <text>\n"
|
||||||
"spmenu -It, --input <text> Set initial input text to <text>\n"
|
"spmenu -It, --input <text> Set initial input text to <text>\n"
|
||||||
"spmenu -ip, --indent Indent items to prompt width\n"
|
"spmenu -ip, --indent Indent items to prompt width\n"
|
||||||
"spmenu -nip, --no-indent Don't indent items to prompt width\n"
|
"spmenu -nip, --no-indent Don't indent items to prompt width\n"
|
||||||
|
|
3
spmenu.1
3
spmenu.1
|
@ -133,6 +133,9 @@ Don\[cq]t hide characters
|
||||||
\f[V]-p, --prompt text\f[R]
|
\f[V]-p, --prompt text\f[R]
|
||||||
Set spmenu prompt text to text
|
Set spmenu prompt text to text
|
||||||
.TP
|
.TP
|
||||||
|
\f[V]-pt, --pretext text\f[R]
|
||||||
|
Set spmenu pretext to text
|
||||||
|
.TP
|
||||||
\f[V]-It, --input text\f[R]
|
\f[V]-It, --input text\f[R]
|
||||||
Set initial input text to text
|
Set initial input text to text
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in a new issue