tAdding instantenous debug output and fixing italic with a reset. - st - [fork]… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f2da43a0b66f76532ebef5ed2b2c9135aca771a5 | |
parent 86cf8e3073aa5c51f7ea8ea9a9ca5f13dde829c3 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Wed, 5 Sep 2012 23:38:57 +0200 | |
Adding instantenous debug output and fixing italic with a reset. | |
Diffstat: | |
M st.c | 7 +++++-- | |
1 file changed, 5 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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 | … | |
+ term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | … | |
+ | ATTR_ITALIC); | |
term.c.attr.fg = DefaultFG; | |
term.c.attr.bg = DefaultBG; | |
break; | |
t@@ -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) { |