colors at launch patch
This commit is contained in:
parent
1bbc199286
commit
72d0d47817
7
x.c
7
x.c
|
@ -2027,6 +2027,8 @@ usage(void)
|
|||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
char *colval;
|
||||
xw.l = xw.t = 0;
|
||||
xw.isfixed = False;
|
||||
xsetcursor(cursorshape);
|
||||
|
@ -2071,6 +2073,11 @@ main(int argc, char *argv[])
|
|||
case 'v':
|
||||
die("%s " VERSION "\n", argv0);
|
||||
break;
|
||||
case 'C':
|
||||
colval = strtok(EARGF(usage()), "@");
|
||||
i = atoi(strtok(NULL, "@"));
|
||||
colorname[i] = colval;
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
} ARGEND;
|
||||
|
|
Loading…
Reference in New Issue