You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Updated JIRA)" <ji...@apache.org> on 2011/12/24 16:42:30 UTC

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

     [ https://issues.apache.org/jira/browse/KARAF-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-132:
---------------------------------------

          Component/s: karaf-shell
    Affects Version/s: 2.2.4
        Fix Version/s: 3.0.0
                       2.2.6
    
> 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
>          Components: karaf-shell
>    Affects Versions: 2.2.4
>            Reporter: Guillaume Nodet
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.6, 3.0.0
>
>         Attachments: patchfile.txt
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira