diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-09-05 23:38:57 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-09-05 23:38:57 +0200 |
commit | b576d2c551ed47eaa8258bb7d9d7ee409bb4d9b7 (patch) | |
tree | b89ee99ce5dc30efbc8c2a99dba3163db4ccb279 | |
parent | f48c2b1484e1134fcac93164940565290eff796d (diff) | |
download | st-b576d2c551ed47eaa8258bb7d9d7ee409bb4d9b7.tar.gz st-b576d2c551ed47eaa8258bb7d9d7ee409bb4d9b7.tar.bz2 |
Adding instantenous debug output and fixing italic with a reset.
-rw-r--r-- | st.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1127,7 +1127,8 @@ tsetattr(int *attr, int l) { for(i = 0; i < l; i++) { switch(attr[i]) { case 0: - term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | ATTR_BOLD); + term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | ATTR_BOLD \ + | ATTR_ITALIC); term.c.attr.fg = DefaultFG; term.c.attr.bg = DefaultBG; break; @@ -1565,8 +1566,10 @@ void tputc(char *c) { char ascii = *c; - if(fileio) + if(fileio) { putc(ascii, fileio); + fflush(fileio); + } if(term.esc & ESC_START) { if(term.esc & ESC_CSI) { |