diff options
author | obrien <obrien@FreeBSD.org> | 2000-04-20 04:22:36 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-04-20 04:22:36 +0000 |
commit | efebb8d2fa02976f24760fdc8c7444d9cbfc1ca3 (patch) | |
tree | b621d4cee9510d59a22e8ba84f80bd04ed79bd74 /contrib/tcsh/tc.prompt.c | |
parent | 4ad28cefef28ce6bdb44a0532cfe20a2076bc694 (diff) | |
download | FreeBSD-src-efebb8d2fa02976f24760fdc8c7444d9cbfc1ca3.zip FreeBSD-src-efebb8d2fa02976f24760fdc8c7444d9cbfc1ca3.tar.gz |
6.09.01 vendor update.
Diffstat (limited to 'contrib/tcsh/tc.prompt.c')
-rw-r--r-- | contrib/tcsh/tc.prompt.c | 12 |
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) { |