瀏覽代碼

Make line drawing work again.

Christoph Lohmann 12 年之前
父節點
當前提交
b4b513c791
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      st.c

+ 6 - 3
st.c

@@ -1987,10 +1987,13 @@ tputc(char *c, int len) {
 			term.esc = ESC_START;
 			return;
 		case '\016':	/* SO */
-			term.c.attr.mode |= ATTR_GFX;
-			return;
 		case '\017':	/* 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 '\032':	/* SUB */
 		case '\030':	/* CAN */