coupdebol / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

lanterna-3.0.0-alpha6 really usable? #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm missing at least the class StackedModalWindowManager in the 
lanterna-3.0.0-alpha6.jar

Beside that, it seems that creating GUIs with V3 is quite diffitcult now - or 
it's because of the not existing documentation.

In V2 creating a screen was just a matter of:

GUIScreen guiScreen = TerminalFacade.createGUIScreen();

In V3 it seems that more steps are necessary and I can not get it to work to 
display a simple window. This is what I've tried:

Screen guiScreen = null;
    Screen virtualScreen = null;
        Terminal t = tf.createTerminal();
        guiScreen = new TerminalScreen(t);
        virtualScreen = new VirtualScreen(guiScreen);

        virtualScreen.startScreen();
        DefaultWindowManager wm = new DefaultWindowManager();

            DefaultWindowTextGUI gui = new DefaultWindowTextGUI(screen, new StackedModalWindowManager(), new EmptySpace(COLORS[currentColor]));

            Window w = ... ?

Original issue reported on code.google.com by ako...@gmail.com on 31 Mar 2015 at 11:22