[hackers] [st] Simplify techo || noname_AT_inventati.org

From: <git_AT_suckless.org>
Date: Sun, 20 Apr 2014 21:02:51 +0200

commit 4ad2fc7f18c8a58d9f88d9a91fb4972849cfd964
Author: noname_AT_inventati.org <noname_AT_inventati.org>
Date: Sun Apr 13 20:21:32 2014 +0400

    Simplify techo
    
    Remove special case for \e because it is handled well by "control code"
    case.

diff --git a/st.c b/st.c
index df660ff..e510565 100644
--- a/st.c
+++ b/st.c
_AT_@ -2318,10 +2318,7 @@ techo(char *buf, int len) {
         for(; len > 0; buf++, len--) {
                 char c = *buf;
 
- if(c == '') { /* escape */
- tputc("^", 1);
- tputc("[", 1);
- } else if(c < '\x20') { /* control code */
+ if(c < '\x20') { /* control code */
                         if(c != '
' && c != ' ' && c != ' ') {
                                 c |= '\x40';
                                 tputc("^", 1);
Received on Sun Apr 20 2014 - 21:02:51 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 20 2014 - 21:12:10 CEST