[hackers] [st] Adding instantenous debug output and fixing italic with a reset. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Wed, 5 Sep 2012 23:40:43 +0200 (CEST)

changeset: 288:aaa4519098f5
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Wed Sep 05 23:38:57 2012 +0200
files: st.c
description:
Adding instantenous debug output and fixing italic with a reset.


diff -r 99be7d99f931 -r aaa4519098f5 st.c
--- a/st.c Wed Sep 05 23:06:59 2012 +0200
+++ b/st.c Wed Sep 05 23:38:57 2012 +0200
_AT_@ -1127,7 +1127,8 @@
         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;
_AT_@ -1565,8 +1566,10 @@
 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) {
Received on Wed Sep 05 2012 - 23:40:43 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 05 2012 - 23:48:08 CEST