Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Ctrl-W killing entire line, not just last word


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dotancohen at gmail.com
Guest





PostPosted: Wed Dec 11, 2013 2:23 pm    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On the Asterisk CLI, I notice that pressing Ctrl-W deletes the entire
line of text, as opposed to just the last word. Is this an artifact of
using editline instead of readline? I'll note that other Emacs-style
keypresses work just fine on the Asterisk CLI, but Ctrl-W is a real
pain. I would go so far as to call this a bug as it is certainly
behaviour that differs from what the user expects.

Here are my system details:

*CLI> core show version
Asterisk 11.5.1 built by dotancohen @ eris on a x86_64 running Linux
on 2013-10-07 19:20:49 UTC
*CLI> Asterisk cleanly ending (0).
Executing last minute cleanups
- eris():~$ uname -a
Linux eris 3.8.0-34-generic #49-Ubuntu SMP Tue Nov 12 18:00:10 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux
- eris():~$ cat /etc/issue
Ubuntu 13.04 \n \l



Interestingly, I don't even seem to have editline installed and thus
Asterisk is likely using its own packaged editline:

- eris():~$ aptitude search editline
p libeditline-dev - development files for
libeditline
p libeditline-dev:i386 - development files for
libeditline
p libeditline0 - line editing library
similar to readline
p libeditline0:i386 - line editing library
similar to readline
p libghc-editline-dev - Haskell bindings to
the BSD editline library (libedit
p libghc-editline-dev:i386 - Haskell bindings to
the BSD editline library (libedit
v libghc-editline-dev-0.2.1.1-b3dee -
v libghc-editline-dev-0.2.1.1-c95e1:i386 -
p libghc-editline-doc - Haskell bindings to
the BSD editline library (libedit



Thank you!


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Wed Dec 11, 2013 3:20 pm    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On Wed, Dec 11, 2013 at 09:22:54PM +0200, Dotan Cohen wrote:

Quote:
Interestingly, I don't even seem to have editline installed and thus
Asterisk is likely using its own packaged editline:

You need libedit-dev, not libeditline-dev.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dotancohen at gmail.com
Guest





PostPosted: Thu Dec 12, 2013 3:08 pm    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On Wed, Dec 11, 2013 at 10:20 PM, Tzafrir Cohen
<tzafrir.cohen@xorcom.com> wrote:
Quote:
You need libedit-dev, not libeditline-dev.


Thank you Tzafrir. However, even after installing libedit and
libedit-dev, Ctrl-W still kills (deletes) to the beginning of the
line.


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
tiago.geada at gmail.com
Guest





PostPosted: Sun Dec 15, 2013 8:59 am    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

I would guess you need to recompile ?



On 12 December 2013 20:07, Dotan Cohen <dotancohen@gmail.com (dotancohen@gmail.com)> wrote:
Quote:
On Wed, Dec 11, 2013 at 10:20 PM, Tzafrir Cohen
<tzafrir.cohen@xorcom.com (tzafrir.cohen@xorcom.com)> wrote:
Quote:
You need libedit-dev, not libeditline-dev.



Thank you Tzafrir. However, even after installing libedit and
libedit-dev, Ctrl-W still kills (deletes) to the beginning of the
line.


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Back to top
dotancohen at gmail.com
Guest





PostPosted: Sun Dec 15, 2013 11:25 am    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On Sun, Dec 15, 2013 at 3:58 PM, Tiago Geada <tiago.geada@gmail.com> wrote:
Quote:
I would guess you need to recompile ?


I was under the impression that the library was dynamically linked.

I am using the Ubuntu binaries for Asterisk, so if someone could
confirm that their Asterisk build does in fact kill (delete) a single
word on Ctrl-W, then I'll file a bug against the Ubuntu bug tracker.

Thanks!


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dotnetdub at gmail.com
Guest





PostPosted: Sun Dec 15, 2013 5:41 pm    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

Always has cleared the entire line..

On 15 December 2013 16:25, Dotan Cohen <dotancohen@gmail.com> wrote:
Quote:
On Sun, Dec 15, 2013 at 3:58 PM, Tiago Geada <tiago.geada@gmail.com> wrote:
Quote:
I would guess you need to recompile ?


I was under the impression that the library was dynamically linked.

I am using the Ubuntu binaries for Asterisk, so if someone could
confirm that their Asterisk build does in fact kill (delete) a single
word on Ctrl-W, then I'll file a bug against the Ubuntu bug tracker.

Thanks!


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dotancohen at gmail.com
Guest





PostPosted: Mon Dec 16, 2013 7:28 am    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On Mon, Dec 16, 2013 at 12:41 AM, dotnetdub <dotnetdub@gmail.com> wrote:
Quote:
Always has cleared the entire line..


Interesting, thanks. From where is your Asterisk? Self-compiled?
Distro package? Which distro?



--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dotnetdub at gmail.com
Guest





PostPosted: Wed Dec 18, 2013 5:21 pm    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

1.4 1.6 1.8 11.6.0

All compiled and all running on debian 6 or 7




On 16 December 2013 12:27, Dotan Cohen <dotancohen@gmail.com> wrote:
Quote:
On Mon, Dec 16, 2013 at 12:41 AM, dotnetdub <dotnetdub@gmail.com> wrote:
Quote:
Always has cleared the entire line..


Interesting, thanks. From where is your Asterisk? Self-compiled?
Distro package? Which distro?



--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dotancohen at gmail.com
Guest





PostPosted: Thu Dec 19, 2013 3:17 am    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On Thu, Dec 19, 2013 at 12:20 AM, dotnetdub <dotnetdub@gmail.com> wrote:
Quote:
1.4 1.6 1.8 11.6.0

All compiled and all running on debian 6 or 7


Thanks. Was it built with libedit or libeditline? According to what I
gather from Tzafrir the behaviour that you see is expected from
libeditline, but it is a bug for libedit.


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dotnetdub at gmail.com
Guest





PostPosted: Thu Dec 19, 2013 1:25 pm    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

Quote:
libedit

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Fri Dec 20, 2013 1:39 pm    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On Wed, Dec 18, 2013 at 10:20:12PM +0000, dotnetdub wrote:
Quote:
1.4 1.6 1.8 11.6.0

All compiled and all running on debian 6 or 7


In 1.4 1.6 1.8 there was no option to build with an external libedit.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dotancohen at gmail.com
Guest





PostPosted: Mon Dec 23, 2013 1:26 am    Post subject: [asterisk-users] Ctrl-W killing entire line, not just last w Reply with quote

On Fri, Dec 20, 2013 at 8:39 PM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:
Quote:
In 1.4 1.6 1.8 there was no option to build with an external libedit.


In see, thank you.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services