Adding instantenous debug output and fixing italic with a reset.

master
Christoph Lohmann 2012-09-05 23:38:57 +02:00
parent 86cf8e3073
commit f2da43a0b6
1 changed files with 5 additions and 2 deletions

7
st.c
View File

@ -1127,7 +1127,8 @@ tsetattr(int *attr, int l) {
for(i = 0; i < l; i++) { for(i = 0; i < l; i++) {
switch(attr[i]) { switch(attr[i]) {
case 0: 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.fg = DefaultFG;
term.c.attr.bg = DefaultBG; term.c.attr.bg = DefaultBG;
break; break;
@ -1565,8 +1566,10 @@ void
tputc(char *c) { tputc(char *c) {
char ascii = *c; char ascii = *c;
if(fileio) if(fileio) {
putc(ascii, fileio); putc(ascii, fileio);
fflush(fileio);
}
if(term.esc & ESC_START) { if(term.esc & ESC_START) {
if(term.esc & ESC_CSI) { if(term.esc & ESC_CSI) {