[hackers] [st] Make line drawing work again. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 19 Jan 2013 18:38:37 +0100

commit b4b513c791e01e46399b460789b830ddfc7cb425
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Jan 19 18:38:28 2013 +0100

    Make line drawing work again.

diff --git a/st.c b/st.c
index 7b0fb21..769de8b 100644
--- a/st.c
+++ b/st.c
_AT_@ -1987,10 +1987,13 @@ tputc(char *c, int len) {
                         term.esc = ESC_START;
                         return;
                 case '': /* SO */
- term.c.attr.mode |= ATTR_GFX;
- return;
                 case '': /* SI */
- term.c.attr.mode &= ~ATTR_GFX;
+ /*
+ * Different charsets are hard to handle. Applications
+ * should use the right alt charset escapes for the
+ * only reason they still exist: line drawing. The
+ * rest is incompatible history st should not support.
+ */
                         return;
                 case '': /* SUB */
                 case '': /* CAN */
Received on Sat Jan 19 2013 - 18:38:37 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 19 2013 - 18:48:06 CET