X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FScreen.java;h=0fbbea4cfc5c37f15b8e818dfb15028e2ae6ff3e;hb=3e0743556d1f31723a11a6019b5c2b018b4b2104;hp=9b5890fc0e382bcee1ad48ba6de90dcacd37b448;hpb=d79f1f31b1c036712b4e7f0bbfde980f212c3a3a;p=nikiroo-utils.git diff --git a/src/jexer/backend/Screen.java b/src/jexer/backend/Screen.java index 9b5890f..0fbbea4 100644 --- a/src/jexer/backend/Screen.java +++ b/src/jexer/backend/Screen.java @@ -123,6 +123,15 @@ public interface Screen { */ public CellAttributes getAttrXY(final int x, final int 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); + /** * Set the attributes at one location. * @@ -345,6 +354,27 @@ public interface Screen { */ public void hideCursor(); + /** + * Get the cursor visibility. + * + * @return true if the cursor is visible + */ + public boolean isCursorVisible(); + + /** + * Get the cursor X position. + * + * @return the cursor x column position + */ + public int getCursorX(); + + /** + * Get the cursor Y position. + * + * @return the cursor y row position + */ + public int getCursorY(); + /** * Set the window title. *