You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2010/07/21 10:11:50 UTC

[jira] Created: (KARAF-132) The user name for the main console session is always "karaf"

The user name for the main console session is always "karaf"
------------------------------------------------------------

                 Key: KARAF-132
                 URL: https://issues.apache.org/jira/browse/KARAF-132
             Project: Karaf
          Issue Type: Bug
            Reporter: Guillaume Nodet


See org.apache.karaf.shell.console.jline.ConsoleFactory#start

{code}
            CommandSession session = console.getSession();
            session.put("USER", "karaf");
            session.put("APPLICATION", System.getProperty("karaf.name", "root"));
            session.put("LINES", Integer.toString(terminal.getTerminalHeight()));
            session.put("COLUMNS", Integer.toString(terminal.getTerminalWidth()));
            session.put(".jline.terminal", terminal);
            new Thread(console, "Karaf Shell Console Thread").start();
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.