Skip to content

Commit 5668822

Browse files
committed
update
1 parent 39f2c3b commit 5668822

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

kc

14 KB
Binary file not shown.

kc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ select_palette(void)
4040
}
4141
fclose(fp);
4242
free(line);
43-
sprintf(p.PRI, "printf %%b \" \\e]4;0;$(echo $color00)\\e\\ \
43+
sprintf(p.PRI, "printf %%b \"\\e]4;0;$(echo $color00)\\e\\ \
4444
\\e]4;1;$(echo $color01)\\e\\ \
4545
\\e]4;2;$(echo $color02)\\e\\ \
4646
\\e]4;3;$(echo $color03)\\e\\ \
@@ -64,6 +64,10 @@ select_palette(void)
6464
system(p.PRI);
6565
sprintf(p.PRI, "printf '%s' > %s/current", p.SEL, p.CONF);
6666
system(p.PRI);
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+
system(p.PRI);
6771
return 0;
6872
}
6973

0 commit comments

Comments
 (0)