Mercurial > 510Connectbot
changeset 81:49bda8001175
don't display attribute characters
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 16 Jun 2014 09:19:22 -0700 |
parents | ab8d2f6c5847 |
children | d8da9f32074c |
files | src/org/tn5250j/framework/tn5250/Screen5250.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java Mon Jun 16 09:10:46 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/Screen5250.java Mon Jun 16 09:19:22 2014 -0700 @@ -3845,6 +3845,7 @@ char ch = planes.getChar(p); char co = planes.getCharColor(p); char at = planes.getCharExtended(p); + boolean ia = planes.isAttributePlace(p); if (ch < ' ') ch = ' '; int bg = vt320color[(int)((co >> 8) & 0x0f)]; int fg = vt320color[(int)(co & 0x0f)]; @@ -3852,7 +3853,7 @@ int nd = (int)(at & EXTENDED_5250_NON_DSP); int vt_attr = (fg << VDUBuffer.COLOR_FG_SHIFT) + (bg << VDUBuffer.COLOR_BG_SHIFT); if (ul > 0) vt_attr |= VDUBuffer.UNDERLINE; - if (nd > 0) vt_attr |= VDUBuffer.INVISIBLE; + if (ia || (nd > 0)) vt_attr |= VDUBuffer.INVISIBLE; buffer.putChar(c, r, ch, vt_attr); } }