summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-05 23:38:57 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-05 23:38:57 +0200
commitf2da43a0b66f76532ebef5ed2b2c9135aca771a5 (patch)
treeb89ee99ce5dc30efbc8c2a99dba3163db4ccb279
parentAdding the removal of the timeouts to the TODO. (diff)
downloadst-f2da43a0b66f76532ebef5ed2b2c9135aca771a5.tar.gz
st-f2da43a0b66f76532ebef5ed2b2c9135aca771a5.zip
Adding instantenous debug output and fixing italic with a reset.
-rw-r--r--st.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/st.c b/st.c
index 165d930..fd5e0fd 100644
--- a/st.c
+++ b/st.c
@@ -1127,7 +1127,8 @@ tsetattr(int *attr, int l) {
1127 for(i = 0; i < l; i++) { 1127 for(i = 0; i < l; i++) {
1128 switch(attr[i]) { 1128 switch(attr[i]) {
1129 case 0: 1129 case 0:
1130 term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | ATTR_BOLD); 1130 term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | ATTR_BOLD \
1131 | ATTR_ITALIC);
1131 term.c.attr.fg = DefaultFG; 1132 term.c.attr.fg = DefaultFG;
1132 term.c.attr.bg = DefaultBG; 1133 term.c.attr.bg = DefaultBG;
1133 break; 1134 break;
@@ -1565,8 +1566,10 @@ void
1565tputc(char *c) { 1566tputc(char *c) {
1566 char ascii = *c; 1567 char ascii = *c;
1567 1568
1568 if(fileio) 1569 if(fileio) {
1569 putc(ascii, fileio); 1570 putc(ascii, fileio);
1571 fflush(fileio);
1572 }
1570 1573
1571 if(term.esc & ESC_START) { 1574 if(term.esc & ESC_START) {
1572 if(term.esc & ESC_CSI) { 1575 if(term.esc & ESC_CSI) {