Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
86cf8e3
)
Adding instantenous debug output and fixing italic with a reset.
author
Christoph Lohmann <
[email protected]
>
Wed, 5 Sep 2012 21:38:57 +0000
(23:38 +0200)
committer
Christoph Lohmann <
[email protected]
>
Wed, 5 Sep 2012 21:38:57 +0000
(23:38 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
165d930
..
fd5e0fd
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1127,7
+1127,8
@@
tsetattr(int *attr, int l) {
for(i = 0; i < l; i++) {
switch(attr[i]) {
case 0:
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;
term.c.attr.fg = DefaultFG;
term.c.attr.bg = DefaultBG;
break;
@@
-1565,8
+1566,10
@@
void
tputc(char *c) {
char ascii = *c;
tputc(char *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_CSI) {
if(term.esc & ESC_START) {
if(term.esc & ESC_CSI) {