Martin Lichtin created KARAF-3394:
-------------------------------------

             Summary: Correct the Ctrl-D behaviour of Karaf shell
                 Key: KARAF-3394
                 URL: https://issues.apache.org/jira/browse/KARAF-3394
             Project: Karaf
          Issue Type: Improvement
          Components: karaf-shell
    Affects Versions: 3.0.2
            Reporter: Martin Lichtin
            Priority: Minor


Ctrl-D can be used to exit from the shell and is a short-cut for 'logout'.
{noformat}
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.2)

Hit '<ctrl-d>' or type 'logout' to disconnect shell from current session.
{noformat}
However, the current behaviour is odd and not aligned with how other shells 
(e.g. bash) work.

Ctrl-D should only cause a logout/disconnect when entered on an empty line.

Currently, when one enters a command and then, in the middle of typing the 
command (or editing it), hits Ctrl-D, one gets logged out. This is not how it 
should work. 

Hitting Ctrl-D in the middle of a text should, as in any other shell, delete 
the character to the right of the cursor.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to