diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-12-30 06:27:49 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-12-30 06:27:49 +0000 |
commit | 93b6fd146b6af4191622f6d659f2d7b6bf87724e (patch) | |
tree | 7525d429b29ea4d4d9c53f1e984634d35360a377 /usr.bin | |
parent | 1359258d2efec3daf66d1e863cf8b2d12167c3c1 (diff) |
Allow printing characters > 0x80, thus permitting other charsets
(dem0n@istc.kiev.ua, PR 1547)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/talk/display.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/talk/display.c b/usr.bin/talk/display.c index 672b3b80cb9..81b67d4f02e 100644 --- a/usr.bin/talk/display.c +++ b/usr.bin/talk/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.6 1999/03/23 17:00:38 millert Exp $ */ +/* $OpenBSD: display.c,v 1.7 2000/12/30 06:27:48 angelos Exp $ */ /* $NetBSD: display.c,v 1.3 1994/12/09 02:14:13 jtc Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: display.c,v 1.6 1999/03/23 17:00:38 millert Exp $"; +static char rcsid[] = "$OpenBSD: display.c,v 1.7 2000/12/30 06:27:48 angelos Exp $"; #endif /* not lint */ /* @@ -52,6 +52,9 @@ xwin_t my_win; xwin_t his_win; WINDOW *line_win; +#undef isprint +#define isprint(n) ((unsigned char)(n)>31) + int curses_initialized = 0; /* @@ -157,7 +160,7 @@ display(win, text, size) cch = (*text & 63) + 64; waddch(win->x_win, cch); } else - waddch(win->x_win, *text); + waddch(win->x_win, (unsigned char)(*text)); getyx(win->x_win, win->x_line, win->x_col); text++; } |