summaryrefslogtreecommitdiff
path: root/tterm.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 /tterm.c
parent88f2e0d88c7571a0362cb864ce8b88242865aa39 (diff)
downloadtterm-master.tar.gz
Speed up xterm startHEADmaster
Diffstat (limited to 'tterm.c')
-rw-r--r--tterm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tterm.c b/tterm.c
index 6652aab..d752cd7 100644
--- a/tterm.c
+++ b/tterm.c
@@ -10,7 +10,7 @@
#include <X11/Xlib.h>
/* configuration */
-#define ARGV "xterm", "xterm", "-e", "/usr/local/bin/ksh", "-w", fifo
+#define ARGV "xterm", "xterm", "-e", "u", "/usr/local/bin/ksh", "-w", fifo
#define MAX_CMD 1000
#define MAX_LOOK 1000
@@ -66,7 +66,7 @@ cwdcpy(char *path)
}
int
-main(int argc, char *argv[])
+main()
{
char *cwd, *cmd, *line, *fifo;
FILE *fifofp;
@@ -96,6 +96,9 @@ main(int argc, char *argv[])
pidatom = XInternAtom(display, "_NET_WM_PID", 0);
if (pidatom == None) die("no _NET_WM_PID atom found\n");
+ /* use ISO8859-1 encoding to speed up xterm start */
+ setenv("LC_ALL", "en_US.ISO8859-1", 1);
+
/* start terminal */
if ((child = vfork()) == 0) {
execlp(ARGV, NULL);