added initial text patch
This commit is contained in:
@@ -697,7 +697,7 @@ static void
|
||||
usage(void)
|
||||
{
|
||||
fputs("usage: dmenu [-bfinv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n"
|
||||
" [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr);
|
||||
" [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid] [-it text]\n", stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -742,7 +742,10 @@ main(int argc, char *argv[])
|
||||
colors[SchemeSel][ColFg] = argv[++i];
|
||||
else if (!strcmp(argv[i], "-w")) /* embedding window id */
|
||||
embed = argv[++i];
|
||||
else
|
||||
else if (!strcmp(argv[i], "-it")) { /* embedding window id */
|
||||
const char * text = argv[++i];
|
||||
insert(text, strlen(text));
|
||||
} else
|
||||
usage();
|
||||
|
||||
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
||||
|
||||
Reference in New Issue
Block a user