|
|
@ -486,6 +486,7 @@ static void *xrealloc(void *, size_t);
|
|
|
|
static char *xstrdup(char *);
|
|
|
|
static char *xstrdup(char *);
|
|
|
|
|
|
|
|
|
|
|
|
static void usage(void);
|
|
|
|
static void usage(void);
|
|
|
|
|
|
|
|
static void version(void);
|
|
|
|
|
|
|
|
|
|
|
|
static void (*handler[LASTEvent])(XEvent *) = {
|
|
|
|
static void (*handler[LASTEvent])(XEvent *) = {
|
|
|
|
[KeyPress] = kpress,
|
|
|
|
[KeyPress] = kpress,
|
|
|
@ -4331,14 +4332,19 @@ run(void)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
usage(void)
|
|
|
|
usage(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
die("%s " VERSION " (c) 2010-2016 st engineers\n"
|
|
|
|
die("usage: %s [-aiv] [-c class] [-f font] [-g geometry]"
|
|
|
|
"usage: st [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]\n"
|
|
|
|
" [-o file] [-T title]\n"
|
|
|
|
" [-i] [-t title] [-T title] [-w windowid] [-e command ...]"
|
|
|
|
" [-t title] [-w windowid] [[-e] command [args ...]]\n"
|
|
|
|
" [command ...]\n"
|
|
|
|
" %s [-aiv] [-c class] [-f font] [-g geometry]"
|
|
|
|
" st [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]\n"
|
|
|
|
" [-o file] [-T title]\n"
|
|
|
|
" [-i] [-t title] [-T title] [-w windowid] -l line"
|
|
|
|
" [-t title] [-w windowid] -l line [stty_args ...]\n",
|
|
|
|
" [stty_args ...]\n",
|
|
|
|
argv0, argv0);
|
|
|
|
argv0);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
version(void)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
die("%s " VERSION " (c) 2010-2016 st engineers\n", argv0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
int
|
|
|
@ -4385,6 +4391,8 @@ main(int argc, char *argv[])
|
|
|
|
opt_embed = EARGF(usage());
|
|
|
|
opt_embed = EARGF(usage());
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'v':
|
|
|
|
case 'v':
|
|
|
|
|
|
|
|
version();
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
usage();
|
|
|
|
usage();
|
|
|
|
} ARGEND;
|
|
|
|
} ARGEND;
|
|
|
|