git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#5 append RGB colors when -Djexer.ECMA48.rgbColor=true
[fanfix.git]
/
src
/
jexer
/
io
/
ECMA48Screen.java
diff --git
a/src/jexer/io/ECMA48Screen.java
b/src/jexer/io/ECMA48Screen.java
index 77d48461fe7039469d1c68c9ea396e7c49676654..206c6e54392fe77df013c58a39f894e94b23dc75 100644
(file)
--- a/
src/jexer/io/ECMA48Screen.java
+++ b/
src/jexer/io/ECMA48Screen.java
@@
-137,8
+137,8
@@
public final class ECMA48Screen extends Screen {
&& (lCell.isBlink() == lastAttr.isBlink())
) {
// Both colors changed, attributes the same
&& (lCell.isBlink() == lastAttr.isBlink())
) {
// Both colors changed, attributes the same
- sb.append(terminal.color(lCell.
getForeColor
(),
- lCell.getBackColor()));
+ sb.append(terminal.color(lCell.
isBold
(),
+ lCell.get
ForeColor(), lCell.get
BackColor()));
if (debugToStderr) {
System.err.printf("1 Change only fore/back colors\n");
if (debugToStderr) {
System.err.printf("1 Change only fore/back colors\n");
@@
-169,7
+169,8
@@
public final class ECMA48Screen extends Screen {
) {
// Attributes same, foreColor different
) {
// Attributes same, foreColor different
- sb.append(terminal.color(lCell.getForeColor(), true));
+ sb.append(terminal.color(lCell.isBold(),
+ lCell.getForeColor(), true));
if (debugToStderr) {
System.err.printf("3 Change foreColor\n");
if (debugToStderr) {
System.err.printf("3 Change foreColor\n");
@@
-182,7
+183,8
@@
public final class ECMA48Screen extends Screen {
&& (lCell.isBlink() == lastAttr.isBlink())
) {
// Attributes same, backColor different
&& (lCell.isBlink() == lastAttr.isBlink())
) {
// Attributes same, backColor different
- sb.append(terminal.color(lCell.getBackColor(), false));
+ sb.append(terminal.color(lCell.isBold(),
+ lCell.getBackColor(), false));
if (debugToStderr) {
System.err.printf("4 Change backColor\n");
if (debugToStderr) {
System.err.printf("4 Change backColor\n");