X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=st.c;h=ba6973a9aa06c4a047ed6bd6873a498ff024ece9;hb=034dc71fb8227e8963f22b123f30962ec0b6bca7;hp=8e25d2334ec9a73703f2c6df117e046e998cbda6;hpb=fbfa1f83eb501e885d1077e95739a7d7cab2397f;p=st.git diff --git a/st.c b/st.c index 8e25d23..ba6973a 100644 --- a/st.c +++ b/st.c @@ -1814,9 +1814,12 @@ tputc(char *c, int len) { csireset(); term.esc = ESC_START; return; - case '\016': /* XXX: SO */ - case '\017': /* XXX: SI */ + case '\016': /* SO */ + term.c.attr.mode |= ATTR_GFX; break; + case '\017': /* SI */ + term.c.attr.mode &= ~ATTR_GFX; + return; case '\032': /* SUB */ case '\030': /* CAN */ csireset();