[ https://issues.apache.org/jira/browse/KARAF-5382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16171455#comment-16171455 ]
Tom Quarendon commented on KARAF-5382: -------------------------------------- Useful to be able to get the raw line. That's helpful. Not sure I understand the first half. From Session you don't have access to the reader directly, all you have is "session.readLine". Hence me creating my own LineReader from the Terminal I can get from Session (casting to jline.Terminal). Having got that, I either set my own completer, or nothing at all, and don't set a highlighter. If what you mean is could I try changing the Karaf shell source code of the Session class to make that change, then I'm not sure how I'd go about doing that and running the result. > Karaf shell session.readLine consumes backslashes > ------------------------------------------------- > > Key: KARAF-5382 > URL: https://issues.apache.org/jira/browse/KARAF-5382 > Project: Karaf > Issue Type: Bug > Components: karaf-shell > Reporter: Tom Quarendon > > I don't know what the intended use case is for session.readLine, but the > behaviour w.r.t backslashes is odd. > I use is to prompt for a password from the user. So in an action, call > session.readLine("prompt", '*'). However, if the user's password contains a > backslash, readLine doesn't return what the user typed, which is mighty > confusing. -- This message was sent by Atlassian JIRA (v6.4.14#64029)