-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Somebody claiming to be Connor Lane Smith wrote:
>On 17/10/2011, Stephen Paul Weber <singpolyma_AT_singpolyma.net> wrote:
>> 4) alt+leftarrow and alt+rightarrow, which I use in irssi to swich chats, do
>> not seem to work. Looking at st.c, it seems that kpress handles the
>> arrow keys specially, which may be breaking this?
>
>Currently st handles an arrow key by printing, eg, "[D". With
>shift it is "[1;2D", with alt "[1;3D", and so on. So it needs
>to detect bucky bits and react accordingly.
Excellent! I shoved this in st.c for now:
- - sprintf(buf, "%c%c", IS_SET(MODE_APPKEYPAD) ? 'O' : '[', (shift ? "dacb":"DACB")[ksym - XK_Left]);
- - ttywrite(buf, 3);
+ if(meta) {
+ sprintf(buf, "%c1;3%c", IS_SET(MODE_APPKEYPAD) ? 'O' : '[', (shift ? "dacb":"DACB")[ksym - XK_Left]);
+ ttywrite(buf, 6);
+ } else {
+ sprintf(buf, "%c%c", IS_SET(MODE_APPKEYPAD) ? 'O' : '[', (shift ? "dacb":"DACB")[ksym - XK_Left]);
+ ttywrite(buf, 3);
+ }
And it works! :D
- --
Stephen Paul Weber, _AT_singpolyma
See <
http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJOnEfGAAoJENEcKRHOUZzefCIP/1ITB2ZE4uc2tJgsXulvSThw
oU2SJKCi1/8jLZiQaZW6m76wEtDLrXAhbekoNtPyOuKP32MaZLmPBuG8Vcqm2ofS
d+tfyclVA+vJ6+KoRxlUBpXQ1z632QpEG7kSP/9/txkQ2SDB4qISuCJfs5YfcSZQ
Tst4QAN0i9DNQru4Wu1nrPhoyhetijAwxtG8qZbngfOm6OukbepuGKIzjn8pqPyk
U+lQQIm+AMkul2ExBRFuMr4R4IxRCsBjrw/Andv4CzSznxywQSUR02Z+tc3y7VsQ
31X9/5MAeZyyjm3oA+kLnHFOtsdCNq1VnqrU/9tedT1Qi+cZQG7Q3GzDnNom73Li
gOOQtB1hicG1azwaB3uulnYd4trA9W6hmRv+68LItbsSOPO9qKLVVr/h6iy74h5l
Hy2HfwLguer34HPYcGU+mpCC5UrZHxndCRJaNuh1AhWt/Ltp9irb7FGMf97F0grm
3AJYorpS8QS5pHQj5MFqIbqG5VaEDTMzGbKjqK6RE0gi/jsVZnPCv1cJiRJ/UxAf
gSYjtDn7st8DbMuBOES5mO5Q1kDDgK8ZBel/03jQQlhr71MkQEn4oRmFHerh1JQT
fbVYap0DUPgOkqFlNQQKzNpObfGm49lHVlGAxTP3VRhg0suyCAIg9tT7gr7LdoTc
o6/lW6ID1jEvgG/89yOB
=45vD
-----END PGP SIGNATURE-----
Received on Mon Oct 17 2011 - 17:20:38 CEST