[hatari-devel] libreadline and backspace (was: CAPS support) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] libreadline and backspace (was: CAPS support)
- From: Christian Zietz <czietz@xxxxxxx>
- Date: Sun, 19 Jan 2020 19:54:20 +0100
- Autocrypt: addr=czietz@xxxxxxx; prefer-encrypt=mutual; keydata= mQGiBDdn2AURBADksdHVyN55nv0lx4qGx+GQMrbo7zs7lSkAfhkgmgqp84xUeUiWI/kj1on/ wxkmJ96Yzt0ktDbZYM0C9Z66M3rLfXE1vXALHhegeMuOy/tVWybcohRrhfB7tmANTESJOZke 0lZZ59DcIfFoqLYErb6qX8nLPYnOv6sFubxnhuF9QQCg/3GaIR1sVK9Xq+b4B9BtVxd7cHMD /i2hAEOX3WY3K7PNZJziYF54uBbGiVS88W41l1RARcaeogIZcAKpFH3on+Tf60fAC85MCp17 QIeP44hj4Cf46B+UTVhf3EFG4IOsLRxUonpt7dKO8txsKFN/OFsjlPOuDyg7XMpEWkTWZetm HC9/0pcApIXSDnggde4T8AX6nn/+A/4hBOhPxuvkV7Uw/ebLYwXrLo2vt9OvvC1VfeywNseq PIkFX/+n/+niBS+Cb2ess2SVQNKJ9vP5+vBxg5AMfQXqk1ONldGQ/ARHmL6+Iuo47mO51e7R i691hq13wHUvyKh1AN7fpKI2m3YW55XEQ+3iTMIZcqfjr6xYgG8GJTppdbQgQ2hyaXN0aWFu IFppZXR6IDxjemlldHpAZ214Lm5ldD6IYwQQEQIAIwIZAQIeAQIXgAUCVGD5IgcLCQgHAwIB BhUIAgkKCwQWAgMBAAoJEFLLl/ZtoCXKubQAoIHNaurSMQB8MHDoTk3B7WHk2ApoAJ0egA8q aNoVj0kU4+OjeGzFiSHMOrkCDQQ3Z9gFEAgA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlL OCDaAadWoxTpj0BV89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeS Wc39uK50T8X8dryDxUcwYc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1YTknb zSC0neSRBzZrM2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9fBdXQ6MdGGze MyEstSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCbAkbTCD1mpF1Bn5x8vYlL IhkmuquiXsNV6TILOwACAgf+JhucyZDzOWGht9e0U71kC2bxIOr4iz+ADd3sxS62okrocHXp B9zYDhmJ74BFfC7xMd9bwWNj7YR0yiUdOzY27OcXcEkVmhVBW6AqxuRAKfmYMvvnyR5z5OP6 vg2YSzgOmooc5vequa5YIjLmFkuRlglLiEgdW9gPBFtirNqxOtAqSxEcRrblSn8JBEU51Ii6 SVVuo1nXOP11g8rVO4YvEED89pHT4jgLZu4th1N+mDumNZlqyUIxZ4tQyw3X2OWvEbKWGn2j h0ZywaomUTpVA+wiwxndawP40oowFYT8LNeLtfZyq6xPpQmT2DaNhP4gdy3qkDfnmXkc2zFM YukXo4g/AwUYN2fYBVLLl/ZtoCXKEQKA3QCfTJstYzXurbt9ZnoTU3SFQQmG0/wAoNX91nWM nsS7JOepPAzOUoke4AIi
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1579460061; bh=J6zISM5xBunkxbSY5fcV4QZsw5P1U110PuH4hveeT4A=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=dNQoty2IVryqKq3GLG75B5/rqDzNBhPdhxuNyQm6+CBXLMDtA0g49l6McsW9rqvB4 nGGcJ4OSAjMPfB2K1AtLXt1BoK7eHDn64uZh2lppant1xx+umMIeLw4Pwn4fjnwRg3 uKwOIKC9Vuf3/1YdJVsXt7TKg+WiP/LsyH5l7QBo=
- Openpgp: preference=signencrypt
Christer Solskogen schrieb:
> I use readline 8.0p1 (from git) plus a patch to make it compile for
> mingw-w64 (https://github.com/mxe/mxe/blob/master/src/readline-1.patch)
> If anyone has a patch for the backspace problem (I think the official
> hatari builds use a ancient version of termcap, which don't have that
> bug. I use ncurses to provide termcap)
A quick bug analysis by single stepping through the relevant parts of
the binary: readline calls _rl_backspace() [1] which then calls tputs()
from ncurses. tputs() exits with an error in this line: [2].
I don't know much about termcap/ncurses. Presumably, something is not
initialized correctly. However, if I binary-patch libreadline8.dll to
use the fallback [3] instead of tputs(), the backspace works for me.
This is a work-around I can live with.
Regards
Christian
[1]
<http://git.savannah.gnu.org/cgit/readline.git/tree/terminal.c?h=readline-8.0#n652>.
[2]
<https://github.com/mirror/ncurses/blob/c55d387cebf1cee4757ca2c2ef4fbeae59ee4175/ncurses/tinfo/lib_tputs.c#L297>
[3]
<http://git.savannah.gnu.org/cgit/readline.git/tree/terminal.c?h=readline-8.0#n662>
--
Christian Zietz - CHZ-Soft - czietz@xxxxxxx
WWW: http://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA