Bug 1114074

Summary: Ctrl + Home / Ctrl + End sends same codes as Home / End
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: vteAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: kevin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vte-0.28.2-13.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-04 00:27:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Backported patch
none
Escapes before application of the patch
none
Escapes after application of the patch none

Description Jaroslav Škarvada 2014-06-27 16:11:28 UTC
Created attachment 912862 [details]
Backported patch

Description of problem:
Vte sends the same sequences for Ctrl + Home / Ctrl + End keys as for Home / End:

Ctrl + Home: \eOH
Ctrl + End:  \eOF
Home: \eOH
End:  \eOF

So it's impossible for apps to distinguish Ctrl / non Ctrl variants or even workaround this somehow. For example Midnight commander uses these keys in its default binding and the functions binded to Ctrl + Home / End are not available.

Vte upstream recently patched 3.x to send correct sequences (https://bugzilla.gnome.org/show_bug.cgi?id=600659).

In Fedora there are packages which needs vte 2.x and this functionality is broken there.

Version-Release number of selected component (if applicable):
vte-0.28.2-10.fc20

How reproducible:
Always

Steps to Reproduce:
1. Check the sequences sent by terminal for Ctrl + Home / End

Actual results:
Ctrl + Home: \eOH
Ctrl + End:  \eOF

Expected results:
Ctrl + Home \e[1;5H
Ctrl + End  \e[1;5F

Additional info:

Comment 1 Jaroslav Škarvada 2014-06-27 16:12:20 UTC
Created attachment 912863 [details]
Escapes before application of the patch

Comment 2 Jaroslav Škarvada 2014-06-27 16:13:58 UTC
Created attachment 912864 [details]
Escapes after application of the patch

You can see that nothing else was brokon by the patch.

Comment 3 Kevin Fenzi 2014-06-28 16:16:49 UTC
Looks good. Will push builds here in a bit.

Comment 4 Fedora Update System 2014-06-28 16:50:36 UTC
vte-0.28.2-12.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/vte-0.28.2-12.fc20

Comment 5 Fedora Update System 2014-06-29 02:53:29 UTC
Package vte-0.28.2-12.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing vte-0.28.2-12.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7851/vte-0.28.2-12.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-06-29 19:27:46 UTC
vte-0.28.2-13.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/vte-0.28.2-13.fc20

Comment 7 Fedora Update System 2014-07-04 00:27:47 UTC
vte-0.28.2-13.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.