summaryrefslogtreecommitdiffstats
path: root/usr.bin/window/main.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-11-05 20:20:17 +0000
committerjoerg <joerg@FreeBSD.org>1997-11-05 20:20:17 +0000
commita79b41490ac424ce48e1668239a29e4d1232d37a (patch)
tree1dee5beb8c799a2f8871ce5cff88482ff328d6a9 /usr.bin/window/main.c
parent0bc9255aaad71db6321c5ff6bcc2dea8ada0b3a6 (diff)
downloadFreeBSD-src-a79b41490ac424ce48e1668239a29e4d1232d37a.zip
FreeBSD-src-a79b41490ac424ce48e1668239a29e4d1232d37a.tar.gz
Make window(1) honor the LC_CTYPE setting.
While i was at it, don't export \E[OA style cursor key strings into the TERMCAP variable since window's emulation doesn't support it. Instead, convert to \E[[A etc.
Diffstat (limited to 'usr.bin/window/main.c')
-rw-r--r--usr.bin/window/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/window/main.c b/usr.bin/window/main.c
index 4b95868..3613ca1 100644
--- a/usr.bin/window/main.c
+++ b/usr.bin/window/main.c
@@ -46,6 +46,7 @@ static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/2/94";
#include "defs.h"
#include <paths.h>
+#include <locale.h>
#include <stdio.h>
#include "string.h"
#include "char.h"
@@ -120,6 +121,7 @@ char **argv;
default_nline = NLINE;
default_smooth = 1;
(void) gettimeofday(&starttime, (struct timezone *)0);
+ (void) setlocale(LC_CTYPE, "");
if (wwinit() < 0) {
(void) fprintf(stderr, "%s.\n", wwerror());
exit(1);
OpenPOWER on IntegriCloud