diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -2308,9 +2308,9 @@ techo(char *buf, int len) { | |||
| 2308 | for(; len > 0; buf++, len--) { | 2308 | for(; len > 0; buf++, len--) { |
| 2309 | char c = *buf; | 2309 | char c = *buf; |
| 2310 | 2310 | ||
| 2311 | if(c < '\x20') { /* control code */ | 2311 | if(c < 0x20 || c == 0177) { /* control code */ |
| 2312 | if(c != '\n' && c != '\r' && c != '\t') { | 2312 | if(c != '\n' && c != '\r' && c != '\t') { |
| 2313 | c |= '\x40'; | 2313 | c ^= '\x40'; |
| 2314 | tputc("^", 1); | 2314 | tputc("^", 1); |
| 2315 | } | 2315 | } |
| 2316 | tputc(&c, 1); | 2316 | tputc(&c, 1); |
