sessionInfo = (SessionInfo) input;
}
if (sessionInfo == null) {
- sessionInfo = new TSessionInfo();
+ if (setRawMode == true) {
+ // Reading right off the tty
+ sessionInfo = new TTYSessionInfo();
+ } else {
+ sessionInfo = new TSessionInfo();
+ }
}
this.output = writer;
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.