Re: Key bindings

"Marc Wilson" <[email protected]> Sun, 28 Aug 2022 15:54:58 -0700
Newsgroups gmane.editors.qemacs.devel
Message-ID <[email protected]>
--43773be06f7c487181571544f3bf98b9
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable

Yeah, people recommend iTerm2.  But there's no brokenness with Terminal.=
app, so no reason to replace it.

iTerm has brokenness wrt the system clipboard, while Terminal.app just w=
orks.

Thanks for updating the keyboard support, it works much better now. ^_^

--=20
Marc Wilson
[email protected]


On Sat, Aug 27, 2022, at 4:21 PM, Charlie Gordon wrote:
> Hello Marc,
>=20
> Thank you for your feedback.
>=20
> I am using a Mac too, but I run qemacs in iTerm2, which I recommend as=
 a terminal application on macOS.
>=20
> The escape sequences for Home and End were bogus, I fixed them and add=
ed support for the Control, Shift and Alt prefixes for the cursor moveme=
nt keys.
>=20
> Let me know if is works fine on your system
>=20
> Regarding F1, the terminal indeed sends ESC O P, which is recognised a=
s the key `f1` and bound to the command help-for-help, which is somewhat=
 different from the emacs binding where `f1` is a prefix key equivalent =
to C-h.
>=20
> It is surprising that `f1` seems to invoke goto-tag, which is bound to=
 `C-x ,` and `M-f1` which for some
> obscure reason is not produced by the keyboard when hitting Alt Fn F1,=
 but can be obtained with ESC F1.
>=20
> The key decoding has been substantially improved and unrecognised sequ=
ences are reported.
>=20
> You can also use C-h d to invoke toggle-trace-mode that displays the *=
trace* buffer with information
> about the bytes received from the terminal, the key conversions, the c=
ommands invoked, the bytes
> sent to the shell process and the escape sequences received from the p=
rocess.  This is quite useful
> to debug keyboard and VT100 emulation issues.
>=20
> Best regard
>=20
> Chqrlie
>=20
>> On 27 Aug 2022, at 06:14, Marc Wilson <[email protected]> wrote:
>>=20
>> The key bindings available via C-h b shows
>>=20
>> beginning-of-line : C-a, home =20
>>=20
>> But Home does not go to beginning-of-line.  It instead acts as backwa=
rd-word.
>>=20
>> It also shows
>>=20
>> beginning-of-buffer : M-<, C-home
>>=20
>> And C-home is again backward-word.
>>=20
>> Also, what is qemacs looking for that signifies F1?  In macOS Termina=
l.app, F1 is ESC-O-P, hitting F1 qemacs produces the message =E2=80=9CNo=
 tag=E2=80=9D.  Can that =E2=80=9CPress F1 for help message be customize=
d or disabled?  It looks like canned text in qe.c.
>>=20
>> Thanks.
>>=20
>> --=20
>> Marc Wilson
>> [email protected]

--43773be06f7c487181571544f3bf98b9
Content-Type: text/html;charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>Yeah, people re=
commend iTerm2.&nbsp; But there's no brokenness with Terminal.app, so no=
 reason to replace it.<br></div><div><br></div><div>iTerm has brokenness=
 wrt the system clipboard, while Terminal.app just works.<br></div><div>=
<br></div><div>Thanks for updating the keyboard support, it works much b=
etter now. ^_^</div><div><br></div><div id=3D"sig39065985"><div class=3D=
"signature">--&nbsp;<br></div><div class=3D"signature">Marc Wilson<br></=
div><div class=3D"signature"><a href=3D"mailto:[email protected]">posgu=
[email protected]</a><br></div></div><div><br></div><div><br></div><div>On S=
at, Aug 27, 2022, at 4:21 PM, Charlie Gordon wrote:<br></div><blockquote=
 type=3D"cite" id=3D"qt" style=3D"overflow-wrap:break-word;-webkit-line-=
break:after-white-space;"><div>Hello Marc,<br></div><div class=3D"qt-"><=
br></div><div class=3D"qt-">Thank you for your feedback.<br></div><div c=
lass=3D"qt-"><br></div><div class=3D"qt-">I am using a Mac too, but I ru=
n qemacs in iTerm2, which I recommend as a terminal application on macOS=
.<br></div><div class=3D"qt-"><br></div><div class=3D"qt-">The escape se=
quences for Home and End were bogus, I fixed them and added support for =
the Control, Shift and Alt prefixes for the cursor movement keys.<br></d=
iv><div class=3D"qt-"><br></div><div class=3D"qt-">Let me know if is wor=
ks fine on your system<br></div><div class=3D"qt-"><br></div><div class=3D=
"qt-">Regarding F1, the terminal indeed sends ESC O P, which is recognis=
ed as the key `f1` and bound to the command help-for-help, which is some=
what different from the emacs binding where `f1` is a prefix key equival=
ent to C-h.<br></div><div class=3D"qt-"><br></div><div class=3D"qt-">It =
is surprising that `f1` seems to invoke goto-tag, which is bound to `C-x=
 ,` and `M-f1` which for some<br></div><div class=3D"qt-">obscure reason=
 is not produced by the keyboard when hitting Alt Fn F1, but can be obta=
ined with ESC F1.<br></div><div class=3D"qt-"><br></div><div class=3D"qt=
-">The key decoding has been substantially improved and unrecognised seq=
uences are reported.<br></div><div class=3D"qt-"><br></div><div class=3D=
"qt-">You can also use C-h d to invoke toggle-trace-mode that displays t=
he *trace* buffer with information<br></div><div class=3D"qt-">about the=
 bytes received from the terminal, the key conversions, the commands inv=
oked, the bytes<br></div><div class=3D"qt-">sent to the shell process an=
d the escape sequences received from the process. &nbsp;This is quite us=
eful<br></div><div class=3D"qt-">to debug keyboard and VT100 emulation i=
ssues.<br></div><div class=3D"qt-"><br></div><div class=3D"qt-">Best reg=
ard<br></div><div class=3D"qt-"><br></div><div class=3D"qt-">Chqrlie<br>=
</div><div class=3D"qt-"><div><br></div><div><blockquote type=3D"cite" c=
lass=3D"qt-"><div class=3D"qt-">On 27 Aug 2022, at 06:14, Marc Wilson &l=
t;<a href=3D"mailto:[email protected]" class=3D"qt-">[email protected]=
</a>&gt; wrote:<br></div><div><br></div><div class=3D"qt-"><div style=3D=
"font-family:Helvetica;font-size:12px;font-style:normal;font-variant-cap=
s:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-=
indent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webk=
it-text-stroke-width:0px;" class=3D"qt-">The key bindings available via =
C-h b shows<br></div><div style=3D"font-family:Helvetica;font-size:12px;=
font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spa=
cing:normal;text-align:start;text-indent:0px;text-transform:none;white-s=
pace:normal;word-spacing:0px;-webkit-text-stroke-width:0px;" class=3D"qt=
-"><br></div><div style=3D"font-family:Helvetica;font-size:12px;font-sty=
le:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:nor=
mal;text-align:start;text-indent:0px;text-transform:none;white-space:nor=
mal;word-spacing:0px;-webkit-text-stroke-width:0px;" class=3D"qt-">begin=
ning-of-line : C-a, home&nbsp;&nbsp;<br></div><div style=3D"font-family:=
Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font=
-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;te=
xt-transform:none;white-space:normal;word-spacing:0px;-webkit-text-strok=
e-width:0px;" class=3D"qt-"><br></div><div style=3D"font-family:Helvetic=
a;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:=
normal;letter-spacing:normal;text-align:start;text-indent:0px;text-trans=
form:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:=
0px;" class=3D"qt-">But Home does not go to beginning-of-line. &nbsp;It =
instead acts as backward-word.<br></div><div style=3D"font-family:Helvet=
ica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weigh=
t:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-tra=
nsform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-widt=
h:0px;" class=3D"qt-"><br></div><div style=3D"font-family:Helvetica;font=
-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal=
;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:n=
one;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;" =
class=3D"qt-">It also shows<br></div><div style=3D"font-family:Helvetica=
;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:n=
ormal;letter-spacing:normal;text-align:start;text-indent:0px;text-transf=
orm:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0=
px;" class=3D"qt-"><br></div><div style=3D"font-family:Helvetica;font-si=
ze:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;le=
tter-spacing:normal;text-align:start;text-indent:0px;text-transform:none=
;white-space:normal;word-spacing:0px;-webkit-text-stroke-width:0px;" cla=
ss=3D"qt-">beginning-of-buffer : M-&lt;, C-home<br></div><div style=3D"f=
ont-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:=
normal;font-weight:normal;letter-spacing:normal;text-align:start;text-in=
dent:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit=
-text-stroke-width:0px;" class=3D"qt-"><br></div><div style=3D"font-fami=
ly:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;f=
ont-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px=
;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-st=
roke-width:0px;" class=3D"qt-">And C-home is again backward-word.<br></d=
iv><div style=3D"font-family:Helvetica;font-size:12px;font-style:normal;=
font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-a=
lign:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px;-webkit-text-stroke-width:0px;" class=3D"qt-"><br></div><div =
style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-var=
iant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:sta=
rt;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0=
px;-webkit-text-stroke-width:0px;" class=3D"qt-">Also, what is qemacs lo=
oking for that signifies F1? &nbsp;In macOS Terminal.app, F1 is ESC-O-P,=
 hitting F1 qemacs produces the message =E2=80=9CNo tag=E2=80=9D. &nbsp;=
Can that =E2=80=9CPress F1 for help message be customized or disabled? &=
nbsp;It looks like canned text in qe.c.<br></div><div style=3D"font-fami=
ly:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;f=
ont-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px=
;text-transform:none;white-space:normal;word-spacing:0px;-webkit-text-st=
roke-width:0px;" class=3D"qt-"><br></div><div style=3D"font-family:Helve=
tica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weig=
ht:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-tr=
ansform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-wid=
th:0px;" class=3D"qt-">Thanks.<br></div><div style=3D"font-family:Helvet=
ica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weigh=
t:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-tra=
nsform:none;white-space:normal;word-spacing:0px;-webkit-text-stroke-widt=
h:0px;" class=3D"qt-"><br></div><div id=3D"qt-sig39065985" style=3D"font=
-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:nor=
mal;font-weight:normal;letter-spacing:normal;text-align:start;text-inden=
t:0px;text-transform:none;white-space:normal;word-spacing:0px;-webkit-te=
xt-stroke-width:0px;" class=3D"qt-"><div class=3D"qt-signature">--&nbsp;=
<br></div><div class=3D"qt-signature">Marc Wilson<br></div><div class=3D=
"qt-signature"><a href=3D"mailto:[email protected]" class=3D"qt-">posgu=
[email protected]</a><br></div></div></div></blockquote></div></div></blockq=
uote><div><br></div></body></html>
--43773be06f7c487181571544f3bf98b9--