summaryrefslogtreecommitdiff
path: root/u.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-12 13:05:54 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-12 13:05:54 +0200
commitabc2efa5cc903071602bf78440dde3e6c8ebe776 (patch)
tree4695482c1a1cca23db2aab4285840d19ffe549a4 /u.c
parent88f2e0d88c7571a0362cb864ce8b88242865aa39 (diff)
downloadtterm-master.tar.gz
Speed up xterm startHEADmaster
Diffstat (limited to 'u.c')
-rw-r--r--u.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/u.c b/u.c
new file mode 100644
index 0000000..ef69a37
--- /dev/null
+++ b/u.c
@@ -0,0 +1,11 @@
+#include <err.h>
+#include <unistd.h>
+
+int
+main(int argc, char *argv[])
+{
+ /* Enable UTF-8 encoding in xterm. */
+ write(0, "\033%G", 3);
+ execvp(argv[1], argv+1);
+ err(1, "execvp");
+}