projects
/
ansitris
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f71c261
)
ibm->ansi attribute conversion was inverted (fg<->bg)
author
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 9 Feb 2019 08:53:10 +0000
(10:53 +0200)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 9 Feb 2019 08:53:10 +0000
(10:53 +0200)
src/ansi.c
patch
|
blob
|
history
diff --git
a/src/ansi.c
b/src/ansi.c
index
c0af0c4
..
ac5185f
100644
(file)
--- a/
src/ansi.c
+++ b/
src/ansi.c
@@
-85,8
+85,8
@@
void ansi_ibmchar(unsigned char c, unsigned char attr)
}
if(attr != cur_attr) {
- unsigned char fg = cmap[attr & 7];
- unsigned char bg = cmap[(attr >> 4) & 7];
+ unsigned char bg = cmap[attr & 7];
+ unsigned char fg = cmap[(attr >> 4) & 7];
ptr += sprintf(ptr, "\033[;%d;%dm", fg + 30, bg + 40);
cur_attr = attr;