Add versioned about box, set title
[nikiroo-utils.git] / src / jexer / io / ECMA48Terminal.java
index f448ac447f5ff89599312eb45feb110d68b6a8f8..d567a429c96bd4c60528680098e3466e1aab329b 100644 (file)
@@ -1228,6 +1228,17 @@ public final class ECMA48Terminal implements Runnable {
         return "\033[?1036l";
     }
 
+    /**
+     * Create an xterm OSC sequence to change the window title.  Note package
+     * private access.
+     *
+     * @param title the new title
+     * @return the string to emit to xterm
+     */
+    String setTitle(final String title) {
+        return "\033]2;" + title + "\007";
+    }
+
     /**
      * Create a SGR parameter sequence for a single color change.  Note
      * package private access.