X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2Ftui%2FTuiLauncher.java;fp=src%2Fbe%2Fnikiroo%2Fjvcard%2Ftui%2FTuiLauncher.java;h=054fe4a88eb1436314e4f56d21bdb5a526ad09d3;hb=ed91f27a4f628ec59b0e85cdbb0319287c503f9d;hp=066ba315c4be651db64e51a181850ec3d36d98b8;hpb=4d688b05200c74fab1fc331984d96a2fd47021c1;p=jvcard.git diff --git a/src/be/nikiroo/jvcard/tui/TuiLauncher.java b/src/be/nikiroo/jvcard/tui/TuiLauncher.java index 066ba31..054fe4a 100644 --- a/src/be/nikiroo/jvcard/tui/TuiLauncher.java +++ b/src/be/nikiroo/jvcard/tui/TuiLauncher.java @@ -7,8 +7,6 @@ import be.nikiroo.jvcard.tui.panes.FileList; import com.googlecode.lanterna.TerminalSize; import com.googlecode.lanterna.TextColor; -import com.googlecode.lanterna.gui2.DefaultWindowManager; -import com.googlecode.lanterna.gui2.EmptySpace; import com.googlecode.lanterna.gui2.MultiWindowTextGUI; import com.googlecode.lanterna.gui2.Window; import com.googlecode.lanterna.screen.Screen; @@ -24,6 +22,8 @@ import com.googlecode.lanterna.terminal.Terminal; * */ public class TuiLauncher { + static private Screen screen = null; + /** * Start the TUI program. * @@ -42,6 +42,15 @@ public class TuiLauncher { TuiLauncher.start(textMode, win); } + /** + * Return the used {@link Screen}. + * + * @return the {@link Screen} + */ + static public Screen getScreen() { + return screen; + } + /** * Start the TUI program. * @@ -78,14 +87,16 @@ public class TuiLauncher { }); } - Screen screen = new TerminalScreen(terminal); + screen = new TerminalScreen(terminal); screen.startScreen(); // Create gui and start gui MultiWindowTextGUI gui = new MultiWindowTextGUI(screen, - new DefaultWindowManager(), new EmptySpace(TextColor.ANSI.BLUE)); - gui.addWindowAndWait(win); + TextColor.ANSI.BLUE); + gui.setTheme(UiColors.getCustomTheme()); + + gui.addWindowAndWait(win); screen.stopScreen(); } }