diff options
author | ache <ache@FreeBSD.org> | 1994-10-30 04:05:50 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-10-30 04:05:50 +0000 |
commit | e8cc63c3bb3b5dc1015abf84a6b9eee2453f6898 (patch) | |
tree | 98f244c6b5bf842f3b8d541748cb595b796e9a32 /usr.bin/window/wwgets.c | |
parent | 491abb609952c74e827584e709db09c2ea9aed74 (diff) | |
download | FreeBSD-src-e8cc63c3bb3b5dc1015abf84a6b9eee2453f6898.zip FreeBSD-src-e8cc63c3bb3b5dc1015abf84a6b9eee2453f6898.tar.gz |
More 8bit/ctype fixes, command mode
Diffstat (limited to 'usr.bin/window/wwgets.c')
-rw-r--r-- | usr.bin/window/wwgets.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/window/wwgets.c b/usr.bin/window/wwgets.c index 1141834..a7223b7 100644 --- a/usr.bin/window/wwgets.c +++ b/usr.bin/window/wwgets.c @@ -91,7 +91,10 @@ register struct ww *w; if (p >= buf + n - 1) wwputc(ctrl('g'), w); else - wwputs(unctrl(*p++ = c), w); + if (isctrl(c)) + wwputs(unctrl(*p++ = c), w); + else + wwputc(*p++ = c, w); } } *p = 0; @@ -104,6 +107,6 @@ struct ww *w; { register i; - for (i = strlen(unctrl(c)); --i >= 0;) + for (i = isctrl(c) ? strlen(unctrl(c)) : 1; --i >= 0;) (void) wwwrite(w, "\b \b", 3); } |