* screen
*/
public boolean isDirty() {
- return screens.get(0).isDirty();
+ for (Screen screen: screens) {
+ if (screen.isDirty()) {
+ return true;
+ }
+ }
+ return false;
}
/**
return screens.get(0).getAttrXY(x, y);
}
+ /**
+ * Get the cell at one location.
+ *
+ * @param x column coordinate. 0 is the left-most column.
+ * @param y row coordinate. 0 is the top-most row.
+ * @return the character + attributes
+ */
+ public Cell getCharXY(final int x, final int y) {
+ return screens.get(0).getCharXY(x, y);
+ }
+
/**
* Set the attributes at one location.
*
}
}
+ /**
+ * Get the cursor visibility.
+ *
+ * @return true if the cursor is visible
+ */
+ public boolean isCursorVisible() {
+ return screens.get(0).isCursorVisible();
+ }
+
+ /**
+ * Get the cursor X position.
+ *
+ * @return the cursor x column position
+ */
+ public int getCursorX() {
+ return screens.get(0).getCursorX();
+ }
+
+ /**
+ * Get the cursor Y position.
+ *
+ * @return the cursor y row position
+ */
+ public int getCursorY() {
+ return screens.get(0).getCursorY();
+ }
+
/**
* Set the window title.
*