Mercurial > 510Connectbot
comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 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 | 044b1a951925 |
children | d8da9f32074c |
comparison
equal
deleted
inserted
replaced
80:ab8d2f6c5847 | 81:49bda8001175 |
---|---|
3843 for (int c = startCol; c <= endCol; c++) { | 3843 for (int c = startCol; c <= endCol; c++) { |
3844 int p = getPos(r,c); | 3844 int p = getPos(r,c); |
3845 char ch = planes.getChar(p); | 3845 char ch = planes.getChar(p); |
3846 char co = planes.getCharColor(p); | 3846 char co = planes.getCharColor(p); |
3847 char at = planes.getCharExtended(p); | 3847 char at = planes.getCharExtended(p); |
3848 boolean ia = planes.isAttributePlace(p); | |
3848 if (ch < ' ') ch = ' '; | 3849 if (ch < ' ') ch = ' '; |
3849 int bg = vt320color[(int)((co >> 8) & 0x0f)]; | 3850 int bg = vt320color[(int)((co >> 8) & 0x0f)]; |
3850 int fg = vt320color[(int)(co & 0x0f)]; | 3851 int fg = vt320color[(int)(co & 0x0f)]; |
3851 int ul = (int)(at & EXTENDED_5250_UNDERLINE); | 3852 int ul = (int)(at & EXTENDED_5250_UNDERLINE); |
3852 int nd = (int)(at & EXTENDED_5250_NON_DSP); | 3853 int nd = (int)(at & EXTENDED_5250_NON_DSP); |
3853 int vt_attr = (fg << VDUBuffer.COLOR_FG_SHIFT) + (bg << VDUBuffer.COLOR_BG_SHIFT); | 3854 int vt_attr = (fg << VDUBuffer.COLOR_FG_SHIFT) + (bg << VDUBuffer.COLOR_BG_SHIFT); |
3854 if (ul > 0) vt_attr |= VDUBuffer.UNDERLINE; | 3855 if (ul > 0) vt_attr |= VDUBuffer.UNDERLINE; |
3855 if (nd > 0) vt_attr |= VDUBuffer.INVISIBLE; | 3856 if (ia || (nd > 0)) vt_attr |= VDUBuffer.INVISIBLE; |
3856 buffer.putChar(c, r, ch, vt_attr); | 3857 buffer.putChar(c, r, ch, vt_attr); |
3857 } | 3858 } |
3858 } | 3859 } |
3859 buffer.redrawPassthru(); | 3860 buffer.redrawPassthru(); |
3860 dirtyScreen.setBounds(lenScreen,0,0,0); | 3861 dirtyScreen.setBounds(lenScreen,0,0,0); |