We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f2c3b commit 5668822Copy full SHA for 5668822
kc
14 KB
kc.c
@@ -40,7 +40,7 @@ select_palette(void)
40
}
41
fclose(fp);
42
free(line);
43
- sprintf(p.PRI, "printf %%b \" \\e]4;0;$(echo $color00)\\e\\ \
+ sprintf(p.PRI, "printf %%b \"\\e]4;0;$(echo $color00)\\e\\ \
44
\\e]4;1;$(echo $color01)\\e\\ \
45
\\e]4;2;$(echo $color02)\\e\\ \
46
\\e]4;3;$(echo $color03)\\e\\ \
@@ -64,6 +64,10 @@ select_palette(void)
64
system(p.PRI);
65
sprintf(p.PRI, "printf '%s' > %s/current", p.SEL, p.CONF);
66
67
+ sprintf(p.PRI, "printf '%s' > /dev/fd/0", p.SEL);
68
+ system(p.PRI);
69
+ sprintf(p.PRI, "printf '%s' > /dev/pts/0", p.SEL);
70
71
return 0;
72
73
0 commit comments