desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #125836
[Bug 1468283] Re: Wrong Escape Sequences for Home and End keys
I never meant to file this bug against emacs24.
With alt-F2 I still see the command "ubuntu-bug linux" in the HUD.
On the bug website it then showed me Emacs24 - I then explicitly changed
it linux.
This bug report is to be filed against the linux package but after that
story I don't know how to do this anymore.
That's coincidences: read-char seemed to return <unspecified> today;
additionally the description of an escape sequence in XTerm's
ctlseqs.txt is wrong and when I - today - was in the bank it a bit
longer than usual or something and they told me: "Well, that's Computers
right? Ah, that thing is defunct ...". The pen and paper "program" still
worked, though.
>From ctlseqs.txt in package XTerm:
Result is CSI 8 ; height ; width t
Ps = 1 9 -> Report the size of the screen in characters.
It's not Ps = 19 but Ps = 18
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to emacs24 in Ubuntu.
https://bugs.launchpad.net/bugs/1468283
Title:
Wrong Escape Sequences for Home and End keys
Status in emacs24 package in Ubuntu:
New
Bug description:
Part of my current project involves "descrambling" the escape
sequences sent by terminals for certain keys. As I was not able to
find any documentation for the Linux VT (called tty) I choose to
reference the VT100/220 documentation and I consider the following
behavior a bug.
- The home key (above your cursor keys or fn-left on a MacBook) sends the sequence: CSI 1 ~ which corresponds to some non-existent key labeled "Find"
- The end key (fn-right on a MacBook) sends the sequence CSI 4 ~ which corresponds to some other non-existent key labeled "Select"
These keys may have existed on the same position on the keyboard as
our modern Home and End keys but according to the documentation they
are not Home and End: http://vt100.net/docs/vt220-rm/table3-1.html
The usual escape sequences for the Mac / PC Home and End keys are: CSI
h for home and CSI F for end. Both the Gnome Terminal and the original
XTerm do send these escape sequences.
The easiest way to get out of the Terminal mess is probably a standard
to be defined by the few implementors of Virtual Terminals left. But
as long as an implementation doesn't document its capabilities and
control mechanisms every behavior can be considered a bug.
There are other key mapping related issues, too. Like meta on an alt
key when Meta keys are there ...
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: emacs24 24.4+1-4ubuntu5
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Jun 24 11:49:34 2015
InstallationDate: Installed on 2015-06-08 (15 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: emacs24
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1468283/+subscriptions
References