+ static private Screen screen = null;
+
+ /**
+ * Start the TUI program.
+ *
+ * @param textMode
+ * TRUE to force text mode, FALSE to force the Swing terminal
+ * emulator, null to automatically determine the best choice
+ * @param files
+ * the files to show at startup
+ *
+ * @throws IOException
+ * in case of IO error
+ */
+ static public void start(Boolean textMode, List<String> files)
+ throws IOException {
+ Window win = new MainWindow(new FileList(files));
+ TuiLauncher.start(textMode, win);
+ }
+
+ /**
+ * Return the used {@link Screen}.
+ *
+ * @return the {@link Screen}
+ */
+ static public Screen getScreen() {
+ return screen;
+ }
+
+ /**
+ * Start the TUI program.
+ *
+ * @param textMode
+ * TRUE to force text mode, FALSE to force the Swing terminal
+ * emulator, null to automatically determine the best choice
+ * @param win
+ * the window to show at start
+ *
+ * @throws IOException
+ * in case of IO error
+ */
+ static public void start(Boolean textMode, Window win) throws IOException {