- if (getScreen() instanceof ECMA48Terminal) {
- // BUG: the background color is coming in the same as the
- // foreground color. For now, don't draw it.
- } else {
- gr2.setColor(SwingTerminal.attrToBackgroundColor(cell));
- gr2.fillRect(0, 0, image.getWidth(), image.getHeight());
- }
- gr2.setColor(SwingTerminal.attrToForegroundColor(cell));
- char [] chars = new char[1];
- chars[0] = cell.getChar();
- gr2.drawChars(chars, 0, 1, doubleTextAdjustX,
- (textHeight * 2) - doubleMaxDescent + doubleTextAdjustY);
-
- if (cell.isUnderline() && (line.getDoubleHeight() != 1)) {
- gr2.fillRect(0, textHeight - 2, textWidth, 2);
+ gr2.setColor(SwingTerminal.attrToBackgroundColor(cell));
+ gr2.fillRect(0, 0, image.getWidth(), image.getHeight());
+ if (!cell.isBlink()
+ || (cell.isBlink() && cursorBlinkVisible)
+ ) {
+ gr2.setColor(SwingTerminal.attrToForegroundColor(cell));
+ char [] chars = new char[1];
+ chars[0] = cell.getChar();
+ gr2.drawChars(chars, 0, 1, doubleTextAdjustX,
+ (textHeight * 2) - doubleMaxDescent + doubleTextAdjustY);
+
+ if (cell.isUnderline() && (line.getDoubleHeight() != 1)) {
+ gr2.fillRect(0, textHeight - 2, textWidth, 2);
+ }