pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc74c4f
)
Simplify techo
author
noname@inventati.org
<noname@inventati.org>
Sun, 13 Apr 2014 16:21:32 +0000
(20:21 +0400)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Tue, 15 Apr 2014 06:16:39 +0000
(08:16 +0200)
Remove special case for \e because it is handled well by "control code"
case.
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
df660ff
..
e510565
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2318,10
+2318,7
@@
techo(char *buf, int len) {
for(; len > 0; buf++, len--) {
char c = *buf;
- if(c == '\033') { /* escape */
- tputc("^", 1);
- tputc("[", 1);
- } else if(c < '\x20') { /* control code */
+ if(c < '\x20') { /* control code */
if(c != '\n' && c != '\r' && c != '\t') {
c |= '\x40';
tputc("^", 1);