Update copyright to 2017
[nikiroo-utils.git] / src / jexer / io / ECMA48Screen.java
index 4c3af185db87b929a26aa2447406d75c0000d921..77d48461fe7039469d1c68c9ea396e7c49676654 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -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();
+    }
+
 }