summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/tc.prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcsh/tc.prompt.c')
-rw-r--r--contrib/tcsh/tc.prompt.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/tcsh/tc.prompt.c b/contrib/tcsh/tc.prompt.c
index 204630e..59daa64 100644
--- a/contrib/tcsh/tc.prompt.c
+++ b/contrib/tcsh/tc.prompt.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/tc.prompt.c,v 3.36 1999/02/06 15:19:04 christos Exp $ */
+/* $Header: /src/pub/tcsh/tc.prompt.c,v 3.37 2000/01/14 22:57:29 christos Exp $ */
/*
* tc.prompt.c: Prompt printing stuff
*/
@@ -36,7 +36,7 @@
*/
#include "sh.h"
-RCSID("$Id: tc.prompt.c,v 3.36 1999/02/06 15:19:04 christos Exp $")
+RCSID("$Id: tc.prompt.c,v 3.37 2000/01/14 22:57:29 christos Exp $")
#include "ed.h"
#include "tw.h"
@@ -205,6 +205,14 @@ tprintf(what, buf, fmt, siz, str, tim, info)
for (; *cp; cp++) {
if (p >= ep)
break;
+#ifdef DSPMBYTE
+ if (Ismbyte1(*cp) && ! (cp[1] == '\0'))
+ {
+ *p++ = attributes | *cp++; /* normal character */
+ *p++ = attributes | *cp; /* normal character */
+ }
+ else
+#endif /* DSPMBYTE */
if ((*cp == '%') && ! (cp[1] == '\0')) {
cp++;
switch (*cp) {
OpenPOWER on IntegriCloud