Bug 6045 - (int-153696) ENTER key stops working in XTerm
(int-153696)
: ENTER key stops working in XTerm
Status: RESOLVED FIXED
Product: Utilities
X Terminal
: 5.0/(2.2009.51-1)
: N900 Maemo
: Low normal with 17 votes (vote)
: 5.0/Community-SSU
Assigned To: unassigned
: osso-xterm-bugs
:
:
: int-145190
:
  Show dependency tree
 
Reported: 2009-11-05 16:49 UTC by luarvique
Modified: 2011-02-06 03:53 UTC (History)
7 users (show)

See Also:


Attachments


Note

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


Description luarvique (reporter) 2009-11-05 16:49:47 UTC
SOFTWARE VERSION:
1.2009.41-10

STEPS TO REPRODUCE THE PROBLEM:
1. Open XTerm.
2. SSH to some external machine.
3. Run SCREEN on that external machine.
4. Disconnect SSH session.

EXPECTED OUTCOME:
ENTER key continues working in XTerm.

ACTUAL OUTCOME:
ENTER key is not working. You have to close XTerm and start it again.

REPRODUCIBILITY:
sometimes

EXTRA SOFTWARE INSTALLED:
OpenSSH Server/Client

The server is running
FreeBSD 5.4-RELEASE
Screen version 4.00.03 (FAU) 23-Oct-06
Comment 1 Andrew Flegg maemo.org 2009-11-05 18:46:18 UTC
I saw this yesterday and had to use Ctrl-M to send newlines.
Comment 2 Donn Morrison 2009-11-05 19:06:49 UTC
I have this as well. When my connection goes down (everything still looks
connected, however, see bug 5708 for details), ssh terminates, saying "Timeout,
server not responding." (I have ServerAliveInterval=60 set in my .ssh/config to
help mitigate bug 5708 by keeping the wifi alive) and I'm left at the shell
prompt. Pressing Enter does nothing, I have to press CTRL-M to get a carriage
return.

I can reproduce this 100% of the time.

I think that this is related to bug 6009.
Comment 3 Marius Gedminas 2009-11-05 19:28:20 UTC
What I think happens here is that screen issues a terminal initialization
sequence which enables the application numeric keypad mode and makes the
KP_Enter key send \033OM.

I strongly believe that osso-xterm (or, vte, probably) should internally treat
KP_Enter as the regular Enter key, making it always send \n (even in
application keypad mode).
Comment 4 luarvique (reporter) 2009-11-05 19:31:35 UTC
(In reply to comment #3)
> I strongly believe that osso-xterm (or, vte, probably) should internally treat
> KP_Enter as the regular Enter key, making it always send \n (even in
> application keypad mode).
I agree and add to this that resolving the following bug would let the user
reset osso-xterm if something like that happens:

https://bugs.maemo.org/show_bug.cgi?id=4916
Comment 5 Lucas Maneos 2009-11-05 20:47:11 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 Andre Klapper maemo.org 2009-11-09 19:58:15 UTC
(In reply to comment #4)
> I agree and add to this that resolving the following bug would let the user
> reset osso-xterm if something like that happens:
> https://bugs.maemo.org/show_bug.cgi?id=4916

That bug is definitely fixed internally as I can reset the terminal.
I also think that this depends on bug 6009 - adding dep.
Comment 7 Andre Klapper maemo.org 2010-01-19 19:52:06 UTC
This bug was reported against 1.2009.41-10 and there have been two software
updates since then.
Can you please try/report if the issue here still happens in version
2.2009.51-1?
Comment 8 Patrick Smears 2010-01-19 19:59:26 UTC
(In reply to comment #7)
> Can you please try/report if the issue here still happens in version
> 2.2009.51-1?

It still happens in 2.2009.51-1.
Comment 9 Andre Klapper maemo.org 2010-01-19 21:04:55 UTC
Thanks for retesting.
Comment 10 Vincent Lefevre 2010-05-04 11:13:08 UTC
If the cause is that the SSH connection dies while being in application mode
(to reproduce, you can close the connection with the two characters "~." after
a Ctrl-M), then this is not a bug (except the consequence of bug 6009). You'll
notice that the Enter key isn't necessarily the only affected key. Depending on
the shell and its configuration, the arrow keys may no longer work as well
(because the escape sequences are not the same in application mode). This is
not specific to Maemo. Same problem everywhere.

Instead of restarting the terminal, you can reset it with the "reset" utility
(after the prompt, type "reset" then Ctrl-M).
Comment 11 Thomas Perl 2011-01-30 11:55:14 UTC
Please retest this with the Community SSU from:

  http://wiki.maemo.org/Community_SSU

I'm assuming that this bug (Enter key stops working) is fixed by the patch that
fixes bug 6009, and that patch is included in the vte package from the
Community SSU (see bug 6009 for details).
Comment 12 Andre Klapper maemo.org 2011-02-01 15:19:50 UTC
moreinfo as per last quesion.
Comment 13 Vincent Lefevre 2011-02-06 00:57:18 UTC
I confirm that the Community SSU fixes the problem.
Comment 14 Andre Klapper maemo.org 2011-02-06 03:53:52 UTC
Thanks for retesting!

For others reading this report: See bug 6009 and
http://wiki.maemo.org/Community_SSU for more information how to receive the
fix.