Package org.jnode.driver.textscreen

Examples of org.jnode.driver.textscreen.TextScreen


        // ensure that old and new screens are compatible
        if ((systemScreen.getWidth() != screen.getWidth()) || (systemScreen.getHeight() != screen.getHeight())) {
            throw new IllegalArgumentException("old and new screen have different sizes");
        }

        TextScreen oldScreen = screen;
        screen = systemScreen;

        final int size = oldScreen.getWidth() * oldScreen.getHeight();
        ensureVisible(oldScreen, 0);
        oldScreen.copyTo(screen, 0, size);
        syncScreen(0, size);
    }
View Full Code Here


       
        InitialNaming.addNameSpaceListener(TextScreenManager.NAME, new NameSpaceListener<TextScreenManager>() {

            @Override
            public void serviceBound(TextScreenManager service) {
                final TextScreen systemScreen = service.getSystemScreen();
               
                for (Console c : getConsoles()) {
                    TextScreenConsole console = (TextScreenConsole) c;
                   
                    final TextScreen screen;           
                    if ((console.getOptions() & CreateOptions.SCROLLABLE) != 0) {
                        screen = systemScreen.createCompatibleScrollableBufferScreen(SCROLLABLE_HEIGHT);
                    } else {
                        screen = systemScreen.createCompatibleBufferScreen();
                    }
View Full Code Here

            if ((options & CreateOptions.SCROLLABLE) != 0) {
                final ScrollableTextScreen screen;
                screen = tsm.getSystemScreen().createCompatibleScrollableBufferScreen(SCROLLABLE_HEIGHT);
                console = new ScrollableTextScreenConsole(this, name, screen, options);
            } else {
                final TextScreen screen;
                screen = tsm.getSystemScreen().createCompatibleBufferScreen();
                console = new TextScreenConsole(this, name, screen, options);
            }
            console.setIn(getReader(options, console));
            if ((options & CreateOptions.STACKED) != 0) {
View Full Code Here

TOP

Related Classes of org.jnode.driver.textscreen.TextScreen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.