// wait until either the backend or the consumer threads have
// something to do.
try {
+ if (debugThreads) {
+ System.err.println("sleep " + timeout + " millis");
+ }
synchronized (this) {
this.wait(timeout);
}
}
Cell that = (Cell) rhs;
- return (super.equals(rhs)
- && (ch == that.ch));
+
+ if (ch == that.ch) {
+ return super.equals(rhs);
+ }
+ return false;
}
/**
}
CellAttributes that = (CellAttributes) rhs;
- return ((bold == that.bold)
- && (blink == that.blink)
+ return ((foreColor == that.foreColor)
+ && (backColor == that.backColor)
+ && (bold == that.bold)
&& (reverse == that.reverse)
&& (underline == that.underline)
- && (protect == that.protect)
- && (foreColor == that.foreColor)
- && (backColor == that.backColor));
+ && (blink == that.blink)
+ && (protect == that.protect));
}
/**
// Prevent updates to the screen's data from the TApplication
// threads.
synchronized (screen) {
+
/*
System.err.printf("bounds %s X %d %d Y %d %d\n",
bounds, xCellMin, xCellMax, yCellMin, yCellMax);
*/
+ Cell lCellColor = new Cell();
for (int y = yCellMin; y < yCellMax; y++) {
for (int x = xCellMin; x < xCellMax; x++) {
|| lCell.isBlink()
|| reallyCleared) {
- Cell lCellColor = new Cell();
lCellColor.setTo(lCell);
// Check for reverse