comparison src/org/tn5250j/framework/tn5250/Screen5250.java @ 77:0da8878ec057 tn5250

convert 5250 to vt320 attributes
author Carl Byington <carl@five-ten-sg.com>
date Sun, 15 Jun 2014 10:58:26 -0700
parents 00464d9c2f54
children 044b1a951925
comparison
equal deleted inserted replaced
76:00464d9c2f54 77:0da8878ec057
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 << COLOR_FG_SHIFT) + (bg << COLOR_BG_SHIFT);
3854 if (ul > 0) vt_attr |= UNDERLINE; 3854 if (ul > 0) vt_attr |= UNDERLINE;
3855 if (nd > 0) vt_attr |= INVISIBLE; 3855 if (nd > 0) vt_attr |= INVISIBLE;
3856 buffer.putChar(c, r, ch, vt_attr); 3856 buffer.putChar(c, r, ch, vt_attr);
3857 } 3857 }
3858 } 3858 }