Debian Bug report logs -
#376760
w3m: don't ignore HOME and END on standard keyboards
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#376760; Package w3m.
(full text, mbox, link).
Acknowledgement sent to Dan Jacobson <jidanni@jidanni.org>:
New Bug report received and forwarded. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: w3m
Version: 0.5.1-4
Severity: wishlist
Lynx knows about the HOME and END keys on standard keyboards, but not w3m.
Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#376760; Package w3m.
(full text, mbox, link).
Acknowledgement sent to Fumitoshi UKAI <ukai@debian.or.jp>:
Extra info received and forwarded to list.
(full text, mbox, link).
Message #10 received at 376760@bugs.debian.org (full text, mbox, reply):
At Wed, 05 Jul 2006 02:45:39 +0800,
Dan Jacobson wrote:
> Lynx knows about the HOME and END keys on standard keyboards, but not w3m.
It works for me.
What terminal are you using?
Regards,
Fumitoshi UKAI
Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#376760; Package w3m.
(full text, mbox, link).
Acknowledgement sent to Dan Jacobson <jidanni@jidanni.org>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>.
(full text, mbox, link).
Message #15 received at 376760@bugs.debian.org (full text, mbox, reply):
In rxvt HOME and END do nothing in w3m. I xterm they work fine.
$ infocmp -d rxvt xterm|...
kEND: '\E[8$', '\E[1;2F'.
kHOM: '\E[7$', '\E[1;2H'.
Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#376760; Package w3m.
(full text, mbox, link).
Acknowledgement sent to Thomas Dickey <dickey@radix.net>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>.
(full text, mbox, link).
Message #20 received at 376760@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Wed, Jul 19, 2006 at 02:10:07AM +0200, Dan Jacobson wrote:
> In rxvt HOME and END do nothing in w3m. I xterm they work fine.
> $ infocmp -d rxvt xterm|...
> kEND: '\E[8$', '\E[1;2F'.
> kHOM: '\E[7$', '\E[1;2H'.
Those are the shifted home/end keys that you're citing.
Names of shifted function-keys are mixed case.
w3m may/may not check for those.
Note also that w3m is a termcap application, so it would be looking for
the corresponding termcap names as shown in the terminfo(5) manpage.
Very few termcap applications look for the shifted keys.
If you're not actually using the shifted keys, perhaps the problem lies
in a different area.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
[Message part 2 (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#376760; Package w3m.
(full text, mbox, link).
Acknowledgement sent to Dan Jacobson <jidanni@jidanni.org>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>.
(full text, mbox, link).
Message #25 received at 376760@bugs.debian.org (full text, mbox, reply):
On my Thinkpad, in xterm, pressing home and end give:
$ cat -v
^[[H
^[[F
$ infocmp |sed 2!d
xterm|X11 terminal emulator,
$ infocmp -1|grep '\\E\[[FH]'
clear=\E[H\E[2J,
home=\E[H,
$ infocmp -1 -C|grep '\\E\[[FH]'
:cl=\E[H\E[2J:\
:ho=\E[H:\
Well for some reason lynx and w3m know what end sends even though it
isn't listed above. Home OK too.
In rxvt,
$ cat -v
^[[7~
^[[8~
$ infocmp|sed 2!d
rxvt-unicode|rxvt-unicode terminal (X Window System),
$ infocmp -1 |grep '\\E\[[78]~'
kend=\E[8~,
khome=\E[7~,
$ infocmp -1 -C|grep '\\E\[[78]~'
warning: rxvt-unicode entry is 1134 bytes long
:kh=\E[7~:\
Here we have different names, and termcap lesser entries, and all I
know is lynx still knows what to do but w3m doesn't respond to home
and end.
The Thinkpad r50e does not have a keypad, and I didn't hit shift, not
tinker in ~/.Xresources.
On my desktop 2.6.16-1-k7, all the above is the same. And there is an
additional numerical keypad at the right, where there are additional
home and end keys, and they send:
^[Ow ^[Oq in rxvt (lynx uses them, w3m doesn't), and again ^[[H ^[[F in xterm.
In /etc/X11/xorg.conf on both machines I do
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
but apparently that is not the problem.
Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#376760; Package w3m.
(full text, mbox, link).
Acknowledgement sent to Thomas Dickey <dickey@radix.net>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>.
(full text, mbox, link).
Message #30 received at 376760@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Mon, Jul 31, 2006 at 01:19:58AM +0800, Dan Jacobson wrote:
> On my Thinkpad, in xterm, pressing home and end give:
> $ cat -v
> ^[[H
> ^[[F
> $ infocmp |sed 2!d
> xterm|X11 terminal emulator,
> $ infocmp -1|grep '\\E\[[FH]'
> clear=\E[H\E[2J,
> home=\E[H,
> $ infocmp -1 -C|grep '\\E\[[FH]'
> :cl=\E[H\E[2J:\
> :ho=\E[H:\
The terminfo's written to assume that the application sends smkx (which
puts the keypads into application mode). That's standard (sending smkx),
though some terminfo's were designed to make the bash users happy (mainly
the "linux" description). You can see the effect of changing the modes
easily in xterm using the "VT Options" menu.
> Well for some reason lynx and w3m know what end sends even though it
> isn't listed above. Home OK too.
>
> In rxvt,
> $ cat -v
> ^[[7~
> ^[[8~
> $ infocmp|sed 2!d
> rxvt-unicode|rxvt-unicode terminal (X Window System),
> $ infocmp -1 |grep '\\E\[[78]~'
> kend=\E[8~,
> khome=\E[7~,
> $ infocmp -1 -C|grep '\\E\[[78]~'
> warning: rxvt-unicode entry is 1134 bytes long
> :kh=\E[7~:\
>
> Here we have different names, and termcap lesser entries, and all I
> know is lynx still knows what to do but w3m doesn't respond to home
> and end.
I seem to recall that rxvt's terminfo is (like "linux" ;-), written for
bash-users, and assumes the terminal is started in application mode.
Checking, I see smkx differs between the two:
smkx: '\E[?1h\E=', '\E='.
xterm is on the left; you'll note that xterm uses two escape (\E) sequences
while rxvt uses one. The \E[?1h sets the cursor-keys into application
mode. I know offhand that (because of the way X defines the keycodes),
the home/end keys are classified as cursor keys - for xterm. I'm not
sure about rxvt since it bends the rules differently. Since rxvt isn't
setting that mode explicitly, and because its arrow keys are specified
in application mode, it's possible that some application reset it to
the normal mode. (That might affect the home/end keys - I'm not sure
w/o testing it).
Oddly a quick check of rxvt's rs1/rs2 strings (used in "reset") seems to
show it resetting the terminal's cursor keys into normal mode. But running
"reset" and then using cat -v still shows ^[[A (normal mode), which is
consistent. If I use TERM=xterm, then it would change to ^[OA (application
mode). But a quick check doesn't show home/end changing. It's still
^[[7~ and ^[[8~ respectively.
> The Thinkpad r50e does not have a keypad, and I didn't hit shift, not
> tinker in ~/.Xresources.
>
> On my desktop 2.6.16-1-k7, all the above is the same. And there is an
> additional numerical keypad at the right, where there are additional
> home and end keys, and they send:
> ^[Ow ^[Oq in rxvt (lynx uses them, w3m doesn't), and again ^[[H ^[[F in xterm.
lynx has some hardcoded fallbacks for vt320 escape sequences that might
be catching this case. In the default keyboard configuration, xterm
sends the keys as labeled, e.g., home/end.
> In /etc/X11/xorg.conf on both machines I do
> Option "XkbRules" "xorg"
> Option "XkbModel" "pc104"
> Option "XkbLayout" "us"
> but apparently that is not the problem.
I don't think so either (I've done most of my testing with pc104/us).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
[Message part 2 (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Mon Jun 5 03:07:55 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.