From: Christoph Lohmann <20h@r-36.net> Date: Thu, 13 Sep 2012 21:21:40 +0000 (+0200) Subject: Ignore NUL character as a padding character. Telnet may use this. Patch of X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=commitdiff_plain;h=b1563526561a913dc2a69ee78eb5aaa09cc98978 Ignore NUL character as a padding character. Telnet may use this. Patch of Roberto Vargas. --- diff --git a/st.c b/st.c index c2ee3e2..da895c6 100644 --- a/st.c +++ b/st.c @@ -1723,6 +1723,8 @@ tputc(char *c) { if(sel.bx != -1 && BETWEEN(term.c.y, sel.by, sel.ey)) sel.bx = -1; switch(ascii) { + case '\0': /* padding character, do nothing */ + break; case '\t': tputtab(1); break;