Mercurial > 510Connectbot
comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 78:044b1a951925 tn5250
convert 5250 to vt320 attributes
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 15 Jun 2014 11:05:06 -0700 |
parents | 0da8878ec057 |
children | 49bda8001175 |
comparison
equal
deleted
inserted
replaced
77:0da8878ec057 | 78:044b1a951925 |
---|---|
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 if (ch < ' ') ch = ' '; | 3848 if (ch < ' ') ch = ' '; |
3849 int bg = vt320color[(int)((co >> 8) && 0x0f)]; | 3849 int bg = vt320color[(int)((co >> 8) & 0x0f)]; |
3850 int fg = vt320color[(int)(co && 0x0f)]; | 3850 int fg = vt320color[(int)(co & 0x0f)]; |
3851 int ul = (int)(at && EXTENDED_5250_UNDERLINE); | 3851 int ul = (int)(at & EXTENDED_5250_UNDERLINE); |
3852 int nd = (int)(at && EXTENDED_5250_NON_DSP); | 3852 int nd = (int)(at & EXTENDED_5250_NON_DSP); |
3853 int vt_attr = (fg << COLOR_FG_SHIFT) + (bg << COLOR_BG_SHIFT); | 3853 int vt_attr = (fg << VDUBuffer.COLOR_FG_SHIFT) + (bg << VDUBuffer.COLOR_BG_SHIFT); |
3854 if (ul > 0) vt_attr |= UNDERLINE; | 3854 if (ul > 0) vt_attr |= VDUBuffer.UNDERLINE; |
3855 if (nd > 0) vt_attr |= INVISIBLE; | 3855 if (nd > 0) vt_attr |= VDUBuffer.INVISIBLE; |
3856 buffer.putChar(c, r, ch, vt_attr); | 3856 buffer.putChar(c, r, ch, vt_attr); |
3857 } | 3857 } |
3858 } | 3858 } |
3859 buffer.redrawPassthru(); | 3859 buffer.redrawPassthru(); |
3860 dirtyScreen.setBounds(lenScreen,0,0,0); | 3860 dirtyScreen.setBounds(lenScreen,0,0,0); |