X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fio%2FECMA48Screen.java;h=71878e968988fa4e9d11d132b7953c15b6f15829;hb=55d2b2c2b29ce51f4f910448a115073371deeae8;hp=4c3af185db87b929a26aa2447406d75c0000d921;hpb=e16dda65585466c8987bd1efd718431450a96605;p=nikiroo-utils.git diff --git a/src/jexer/io/ECMA48Screen.java b/src/jexer/io/ECMA48Screen.java index 4c3af18..71878e9 100644 --- a/src/jexer/io/ECMA48Screen.java +++ b/src/jexer/io/ECMA48Screen.java @@ -118,7 +118,7 @@ public final class ECMA48Screen extends Screen { for (int i = x; i < width; i++) { assert (logical[i][y].isBlank()); - // Physical is always updatesd + // Physical is always updated physical[i][y].reset(); } @@ -282,4 +282,15 @@ public final class ECMA48Screen extends Screen { terminal.getOutput().write(result); terminal.flush(); } + + /** + * Set the window title. + * + * @param title the new title + */ + public void setTitle(final String title) { + terminal.getOutput().write(terminal.setTitle(title)); + terminal.flush(); + } + }