Examples of ShellManager


Examples of org.jnode.shell.ShellManager

        if (argv.length == 0) {
            System.out.println("No file specified");
            return;
        }

        ShellManager sm = InitialNaming.lookup(ShellManager.NAME);
        TextScreenConsoleManager manager = (TextScreenConsoleManager) sm.getCurrentShell().getConsole().getManager();
        TextConsole console = manager.createConsole(
            "editor",
            (ConsoleManager.CreateOptions.TEXT |
                ConsoleManager.CreateOptions.STACKED |
                ConsoleManager.CreateOptions.NO_LINE_EDITTING |
View Full Code Here

Examples of org.jnode.shell.ShellManager

    }
   
    private static TextScreenConsoleManager getParentManager() throws NameNotFoundException {
        TextScreenConsoleManager manager = null;
       
        ShellManager sm = InitialNaming.lookup(ShellManager.NAME);
        if (sm != null) {
            // current shell is null when JNode boot directly in GUI mode, without going
            // through command line
            if (sm.getCurrentShell() != null) {
                manager = (TextScreenConsoleManager) sm.getCurrentShell().getConsole().getManager();
            }
        }
       
        return manager;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.