You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Chris Nauroth <cn...@hortonworks.com> on 2015/08/06 19:57:07 UTC

Re: Need to confir zookeeper‘s function(ctrl + d)using zkCli.sh

The ZooKeeper codebase does not customize the JLine key bindings, so you
won't find anything related to this in the ZooKeeper configuration files.
Instead, ZooKeeper uses the default key bindings, shown in the URL from my
last reply.  That includes the mapping of CTL-D to EXIT.

--Chris Nauroth




On 7/27/15, 3:09 AM, "谷川" <al...@gmail.com> wrote:

>Tks Chris
>This document is really useful for me.
>Another question:since ctrl+D 's default function is EXIT, where can I
>find
>the real working setting of this ctrl+D? I mean in zookeeper's config?
>
>2015-07-25 2:07 GMT+08:00 Chris Nauroth <cn...@hortonworks.com>:
>
>> I apologize, but it looks like my email client broke the URL into 2
>> lines.  I'm trying to send this email as HTML as a workaround.
>>
>>
>> 
>>https://github.com/jline/jline/blob/master/src/main/resources/jline/keybi
>>ndings.properties
>>
>> (The last component of the URL needs to be /keybindings.properties
>>instead
>> of /keybind.)
>>
>> The JLine documentation has some further discussion of the key bindings,
>> their defaults, and how you can customize them.
>>
>> --Chris Nauroth
>>
>>
>>
>> On 7/23/15, 9:49 PM, "谷川" <ali.guchuan@gmail.com<mailto:
>> ali.guchuan@gmail.com>> wrote:
>>
>> Hi Chris
>>
>> 
>>https://github.com/jline/jline/blob/master/src/main/resources/jline/keybi
>>nd
>> this web can not be reached,any other ways to confirm the real-command
>>for
>> ctrl+D
>> I tried this on my zk client,find that it execute the last command then
>> EXIT. which config file contain this setting?
>>
>> 2015-07-24 1:09 GMT+08:00 Chris Nauroth
>><cnauroth@hortonworks.com<mailto:
>> cnauroth@hortonworks.com>>:
>>
>> Hello,
>>
>> This is a built-in feature of the JLine library that ZooKeeper uses for
>> CLI handling.  According to JLine's documentation, it's possible to
>> customize its key bindings if you don't like the default behavior.
>>
>> http://jline.sourceforge.net/
>>
>>
>> This file from the JLine source defines the default key bindings.  For
>> example, we can see that CTL-D is mapped to EXIT.
>>
>> 
>>https://github.com/jline/jline/blob/master/src/main/resources/jline/keybi
>>nd
>> ings.properties
>>
>>
>> --Chris Nauroth
>>
>>
>>
>>
>> On 7/23/15, 5:26 AM, "谷川" <ali.guchuan@gmail.com<mailto:
>> ali.guchuan@gmail.com>> wrote:
>>
>> >Hi all
>> >        Does anyone konws what will happened when I enter 'ctrl+D' on
>> >keyborad using zkCli.sh?
>> >        I find that this command(ctrl+D) will execute the last command
>>and
>> >exit,but I didnot find any help info about this command.
>>
>>
>>
>>