Examples of JLineTerminal


Examples of org.apache.karaf.shell.impl.console.JLineTerminal

    private void run(final SessionFactory sessionFactory, String command, final InputStream in, final PrintStream out, final PrintStream err, ClassLoader cl) throws Exception {

        final TerminalFactory terminalFactory = new TerminalFactory();
        try {
            final Terminal terminal = new JLineTerminal(terminalFactory.getTerminal());
            Session session = createSession(sessionFactory, command.length() > 0 ? null : in, out, err, terminal);
            session.put("USER", user);
            session.put("APPLICATION", application);

            discoverCommands(session, cl, getDiscoveryResource());
View Full Code Here

Examples of org.apache.karaf.shell.impl.console.JLineTerminal

                String encoding = getEncoding();
                session = sessionFactory.create(
                                      StreamWrapUtil.reWrapIn(terminal, System.in),
                                      StreamWrapUtil.reWrap(System.out),
                                      StreamWrapUtil.reWrap(System.err),
                                      new JLineTerminal(terminal),
                                      encoding,
                                      callback);
                registration = bundleContext.registerService(Session.class, session, null);
                String name = "Karaf local console user " + ShellUtil.getCurrentUserName();
                boolean delayconsole = Boolean.parseBoolean(System.getProperty("karaf.delay.console"));
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.