[Bug 471951] New: Cursor keys do not work properly in vim in xterm
https://bugzilla.novell.com/show_bug.cgi?id=471951 Summary: Cursor keys do not work properly in vim in xterm Classification: openSUSE Product: openSUSE 11.2 Version: Alpha 0 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jdluhos@novell.com QAContact: qa@suse.de Found By: --- When the vim editor is started in xterm, cursor keys do not work as expected; they tend to jump over words (as if Shift was permanently pressed). The H, J, K, L keys work normally. This happens only in xterm; other terminals (tried with gnome-terminal) seem to be unaffected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c1 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mmarek@novell.com --- Comment #1 from Michal Marek <mmarek@novell.com> 2009-02-03 07:37:46 MST --- Interesting, both in the 11.1 xterm and in the new xterm, vim is receiving the same characters for left & right arrow: new xterm: $ strace -eread -p 25151 Process 25151 attached - interrupt to quit read(0, "\33OC", 250) = 3 read(0, "\33OC", 250) = 3 read(0, "\33OC", 250) = 3 read(0, "\33OC", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, ":", 250) = 1 read(0, "q", 250) = 1 read(0, "\r", 250) = 1 old xterm: $ strace -eread -p 25203 Process 25203 attached - interrupt to quit read(0, "\33OC", 250) = 3 read(0, "\33OC", 250) = 3 read(0, "\33OC", 250) = 3 read(0, "\33OC", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, "\33OD", 250) = 3 read(0, ":", 250) = 1 read(0, "q", 250) = 1 read(0, "\r", 250) = 1 but in the new xterm, it advances by whole words. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c2 --- Comment #2 from Michal Marek <mmarek@novell.com> 2009-02-03 07:46:27 MST --- Created an attachment (id=269646) --> (https://bugzilla.novell.com/attachment.cgi?id=269646) read(0) and write(1) of 'vim /etc/passwd' in 11.1 xterm -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c3 --- Comment #3 from Michal Marek <mmarek@novell.com> 2009-02-03 07:49:03 MST --- Created an attachment (id=269647) --> (https://bugzilla.novell.com/attachment.cgi?id=269647) read(0) and write(1) of 'vim /etc/passwd' in factory xterm The vim binary is the same. Note that it does much more chitchat with the new xterm during startup. User input starts at the first 'read(0, "\33OD", 250)'. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |meissner@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User meissner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c4 --- Comment #4 from Marcus Meissner <meissner@novell.com> 2009-02-03 08:56:28 MST --- i tried the factory xterm (239) on 11.1-ppc 32bit and it seems to work fine. are your systems 64 or 32bit? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c5 --- Comment #5 from Michal Marek <mmarek@novell.com> 2009-02-03 08:59:39 MST --- mine is 64 bit (x86_64). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User jdluhos@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c6 --- Comment #6 from Jiri Dluhos <jdluhos@novell.com> 2009-02-03 09:30:17 MST --- I have also a 64-bit system. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User meissner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c7 --- Comment #7 from Marcus Meissner <meissner@novell.com> 2009-02-03 09:37:24 MST --- rpm -q xterm -238- was known bad for 64bit systems, but -239 should work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c8 --- Comment #8 from Michal Marek <mmarek@novell.com> 2009-02-03 09:42:01 MST --- $ rpm -q xterm; rpm -q --changelog xterm | head xterm-239-2.1 * Thu Jan 29 2009 mfabian@suse.de - bnc#464930: change the default for the ximFont resource from "*" to "fixed", this still works fine with the XIM servers "scim" and "kinput2" and speeds up the startup time of xterm dramatically in zh_CN.UTF-8 and zh_HK.UTF-8 locales. * Tue Jan 13 2009 meissner@suse.de - update to release xterm-239 * correct a cast in input.c, which broke translation of numeric keypad codes to pageup, pagedown, etc., on 64-bit platform (Debian -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User meissner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c9 --- Comment #9 from Marcus Meissner <meissner@novell.com> 2009-02-05 03:50:43 MST --- could not yet reproduce, upgrading xterm on 11.1 did not show it... need a factory install I guess. \EOD and \EOC are the right keycodes as far as I can see, kr and kl entries. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c10 --- Comment #10 from Michal Marek <mmarek@novell.com> 2009-02-05 03:55:31 MST --- I have a 11.0-x86_64 and only updated xterm. The keycodes are right, but for some strange reason vim decides to interpret them differently when running inside the new xterm. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User meissner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c11 --- Comment #11 from Marcus Meissner <meissner@novell.com> 2009-02-05 03:58:51 MST --- echo $TERM echo $XTERM_LOCALE locale -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c12 --- Comment #12 from Michal Marek <mmarek@novell.com> 2009-02-05 04:03:06 MST --- $ echo $TERM xterm $ echo $XTERM_LOCALE cs_CZ.UTF-8 $ locale LANG=cs_CZ.UTF-8 LC_CTYPE="cs_CZ.UTF-8" LC_NUMERIC="cs_CZ.UTF-8" LC_TIME="cs_CZ.UTF-8" LC_COLLATE=C LC_MONETARY="cs_CZ.UTF-8" LC_MESSAGES="cs_CZ.UTF-8" LC_PAPER="cs_CZ.UTF-8" LC_NAME="cs_CZ.UTF-8" LC_ADDRESS="cs_CZ.UTF-8" LC_TELEPHONE="cs_CZ.UTF-8" LC_MEASUREMENT="cs_CZ.UTF-8" LC_IDENTIFICATION="cs_CZ.UTF-8" LC_ALL= -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c13 --- Comment #13 from Michal Marek <mmarek@novell.com> 2009-02-05 04:05:32 MST --- But starting a new xterm with LANG=C doesn't make any difference: $ echo $TERM xterm $ echo $XTERM_LOCALE C $ locale LANG=C LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE=C LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL= It still jumps over whole words. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c14 --- Comment #14 from Michal Marek <mmarek@novell.com> 2009-02-05 04:09:30 MST --- Created an attachment (id=270333) --> (https://bugzilla.novell.com/attachment.cgi?id=270333) xrdb -q output ignore the XTerm_back.* settings. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c15 --- Comment #15 from Michal Marek <mmarek@novell.com> 2009-02-05 04:11:21 MST --- Ah, it works on a new user account, so it must be some custom xterm or vim setting used by Jiri and me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User jdluhos@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c16 --- Comment #16 from Jiri Dluhos <jdluhos@novell.com> 2009-02-05 05:50:00 MST --- It did not work for me even with a new user account; if it is a setting, it gets into defaults for new users, at least on my computer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471951 User mmarek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=471951#c17 --- Comment #17 from Michal Marek <mmarek@novell.com> 2009-02-05 06:12:29 MST --- Thomas Dickey napsal(a):
--- Comment #10 from Michal Marek <mmarek@novell.com> 2009-02-05 03:55:31 MST --- I have a 11.0-x86_64 and only updated xterm. The keycodes are right, but for some strange reason vim decides to interpret them differently when running inside the new xterm.
What's the version of xterm? The issue might be the tcap-query feature (see xterm's changelog).
Hi Thomas, it is xterm 239 as I wrote in one of the above comments. Thanks for the hint about tcap-query, I'll retry with allowTcapOps: false and update the bug. Michal --------------- And indeed, it works for me with $ xterm -xrm '*.vt100.allowTcapOps: false' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com