Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
st.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add SI and SO control codes
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
8e25d23
..
ba6973a
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1814,9
+1814,12
@@
tputc(char *c, int len) {
csireset();
term.esc = ESC_START;
return;
csireset();
term.esc = ESC_START;
return;
- case '\016': /* XXX: SO */
- case '\017': /* XXX: SI */
+ case '\016': /* SO */
+ term.c.attr.mode |= ATTR_GFX;
break;
break;
+ case '\017': /* SI */
+ term.c.attr.mode &= ~ATTR_GFX;
+ return;
case '\032': /* SUB */
case '\030': /* CAN */
csireset();
case '\032': /* SUB */
case '\030': /* CAN */
csireset();