cleft and cright don't backward_word nor forward_word

Bug #104708 reported by Savvas Radevic
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
irssi (Ubuntu)
Fix Released
Low
Unassigned
weechat (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: irssi

I type some words, then I try to go backwards (in the line in irssi) word by word, and instead of going backwards one word, it prints "5D". Same stands for trying to go forward in the line in irssi

I'm using:
Irssi version 0.8.10-2ubuntu1
Ubuntu feisty fawn (7.04) beta
bash
gnome terminal
screen (screen -S irc irssi)
a standard keyboard (en-US language)

There are some bindings in irssi, like meta-b and meta-f (that is, alt-b and alt-f), which do the same thing as cleft and cright, but meta-b and meta-f work OK.

I've tried adding:
/bind 5D backward_word
/bind 5C forward_word
..in irssi and it works, but when i type "5D" (not press ctrl-left, simply type), it too does backword_word,whereas "5C" does forward_word.

In bash/gnome terminal editing a line works well (forward-word and backward-word are OK there).

I do not have a ~/.inputrc file, just the /etc/inputrc which is the following:
(PASTE START)

# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.

# Be 8 bit clean.
set input-meta on
set output-meta on

# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.

# set convert-meta off

# try to enable the application keypad when it is called. Some systems
# need this to enable the arrow keys.
# set enable-keypad on

# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys

# do not bell on tab-completion
# set bell-style none
# set bell-style visible

# some defaults / modifications for the emacs mode
$if mode=emacs

# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line

# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert

# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# "\e[5~": beginning-of-history
# "\e[6~": end-of-history

# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e5C": forward-word
"\e5D": backward-word

$if term=rxvt
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
$endif

# for non RH/Debian xterm, can't hurt for RH/Debian xterm
# "\eOH": beginning-of-line
# "\eOF": end-of-line

# for freebsd console
# "\e[H": beginning-of-line
# "\e[F": end-of-line

$endif

(PASTE END)

Revision history for this message
Savvas Radevic (medigeek) wrote :

I should add that any of the bindings combination that uses arrow keys doesn't work (alt-left, alt-right, alt-up, alt-down, ctrl-left, ctrl-right, ctrl-up, ctrl-down); they all print (as in simply type in the line) a number and a letter:
alt-left prints 3D
alt-right prints 3C
ctrl-left prints 5D
ctrl-right prints 5C

etc.

Revision history for this message
Savvas Radevic (medigeek) wrote :

It's fixed in irssi 0.8.11, I tried it on Ubuntu 7.04 and 7.10 (beta)

Revision history for this message
Savvas Radevic (medigeek) wrote :

but the alt-left or alt-right combinations still don't work.
And I don't think it's a duplicate

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Closing as C-left and C-right work in irssi 0.8.11.

What should alt-left and alt-right do? They do nothing on a gnome-terminal, but print a 'D' and 'C'.

Revision history for this message
Savvas Radevic (medigeek) wrote :

true, but the meta-left and meta-right should also change windows:
check your /bind

18:05:15 meta-left left_window
18:05:15 meta-right right_window

irssi has clearly support for meta- binding:
http://f0rked.com/public/irssi-docs/help-full.html

(Switching windows)
  change_window
  previous_window
  next_window
  upper_window
  lower_window
  active_window - Go to next window with the highest activity
  next_window_item - Next channel/query. In empty windows change
  to next server
  previous_window_item - Previous channel/query. In empty windows change
  to previous server

Revision history for this message
Savvas Radevic (medigeek) wrote :

Should I open it as a new bug?
I tried this:
/bind meta-left previous_window
/bind meta-right next_window
/bind meta-b previous_window
/bind meta-f next_window
/save

Now if I press alt-left or alt-right it doesn't move to the previous/next window, but if I do that with alt-b or alt-f it does.

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Yes, please open a new report, since this was about C-left and C-right (which are now fixed).

Changed in irssi:
importance: Undecided → Low
status: New → Fix Released
Revision history for this message
Matthias-Christian Ott (matthias-christian) wrote :
David Rubin (drubin)
Changed in weechat (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.