diff options
Diffstat (limited to 'tterm.c')
-rw-r--r-- | tterm.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |