Bug 763686 (GLUSTER-1954) - Please add up arrow functionality in command console
Summary: Please add up arrow functionality in command console
Keywords:
Status: CLOSED WORKSFORME
Alias: GLUSTER-1954
Product: GlusterFS
Classification: Community
Component: core
Version: 3.1.0
Hardware: All
OS: Windows
low
medium
Target Milestone: ---
Assignee: Lakshmipathi G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-14 15:54 UTC by Jacob Shucart
Modified: 2015-12-01 16:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Jacob Shucart 2010-10-14 15:54:26 UTC
In the gluster command console, please add arrow functionality so you can hit the up arrow to redisplay the previous command and have it available for editing.  Functionality similar to what you get with a bash prompt or something like that.  Several times I have done this out of habit only to have ^]]A displayed.

Comment 1 Amar Tumballi 2010-10-15 03:05:06 UTC
Hi Jacob,
That support is already present with gluster, but its available only when its built with 'readline-dev' packages installed. With 'readline' mode, it works with auto completion for subcommands also inside the 'gluster>' command.

Can you check and confirm?

Comment 2 Jacob Shucart 2010-10-15 12:15:25 UTC
I actually didn't build it.  This was using the CentOS RPMs.  Perhaps the system they were built on was missing that package?  The system I ran it on has it:

[root@jacobgfs31-s1 ~]# rpm -qa | grep -i readline
readline-5.1-3.el5
readline-5.1-3.el5
readline-devel-5.1-3.el5
readline-devel-5.1-3.el5
[root@jacobgfs31-s1 ~]# gluster
gluster> peer status
Number of Peers: 3

Hostname: jacobgfs31-s2
Uuid: 3fab700c-122e-4ada-83db-681394006a80
State: Peer in Cluster (Connected)

Hostname: jacobgfs31-s3
Uuid: 746daf78-d999-4c68-a4d7-c3250038f63e
State: Peer in Cluster (Connected)

Hostname: jacobgfs31-s4
Uuid: 45578b00-fb8a-42ef-9031-6b5eabe9f45c
State: Peer in Cluster (Disconnected)
gluster> ^[[A^[[A^[[A^[[A^[[A

Comment 3 Amar Tumballi 2011-01-20 06:42:09 UTC
if glusterfs is built with readline library, this feature should already present.


Note You need to log in before you can comment on or make changes to this bug.