aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/st.c b/st.c
index df660ff..e510565 100644
--- a/st.c
+++ b/st.c
@@ -2318,10 +2318,7 @@ techo(char *buf, int len) {
2318 for(; len > 0; buf++, len--) { 2318 for(; len > 0; buf++, len--) {
2319 char c = *buf; 2319 char c = *buf;
2320 2320
2321 if(c == '\033') { /* escape */ 2321 if(c < '\x20') { /* control code */
2322 tputc("^", 1);
2323 tputc("[", 1);
2324 } else if(c < '\x20') { /* control code */
2325 if(c != '\n' && c != '\r' && c != '\t') { 2322 if(c != '\n' && c != '\r' && c != '\t') {
2326 c |= '\x40'; 2323 c |= '\x40';
2327 tputc("^", 1); 2324 tputc("^", 1);