Re: [PATCH] Turn off curses meta() mode before exiting.
"Kevin J. McCarthy" <[email protected]> Wed, 24 Jun 2026 06:56:51 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jun 23, 2026 at 05:42:58PM -0400, Kurt Hackenberg wrote:
>On Mon, Jun 22, 2026 at 13:30 +0800, Kevin J. McCarthy wrote:
>
>>+/* Before exiting, turn off features enabled in start_curses() that
>>+ * are not reversed by endwin().
>>+ */
>>+void mutt_curses_cleanup(void)
>>+{
>>+#if HAVE_META
>>+ meta(stdscr, FALSE);
>>+#endif
>>+}
>
>Shouldn't Mutt only turn off that mode if it was off when Mutt started?
I don't know how to check that via curses.
However, just now while debugging and replying to Vincent, it seems even
currently setting $meta_key doesn't make foot behave properly. It may
be the best thing to just remove this call instead.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmo7DzMACgkQre92hIAx a9ppOw/8CKXjSH6FipuPrrtZaWyswyhxKS0qUe5utdoQQpXONVefRQRpQtHCNsy8 jYPek63MCqDDcTkURACGip1hcleztLPboPuddP7YTsGs4XK+GVZPNVb49+vKSGAa lF+RlBw5o4n5LJ1t3vvwOfnLSKgyAJcny3L7iVwIpEfEl1jN+Ct8EyhZTT0iqZBI gx1UA4S5Rm+rwbRuVitwkFc58ZVbCgC+6UXfFcP9rZHpufUA2vSihW4L5v+xbDCX 8uPIYVJv8Tp7aeErdD0+PqpFtMlrndxsu/cYIWWTavg8GWegCsdsLO84M8rsN1za +kfyUklePBOmNnkh3cwVdOGpj8/716P2FnMF0qzIMCVGI77F73NcAvqCJlG/8CuU KrytJKe8RlEc0+5cj+6WHU8P4qWhkbHwe5ZHUt+hjw7hZrTMn2V7lqrpIRFtwQHF lpLsbzl8kCxPl+RMxQMQB9nX9yZKfAyNKY3qrvJfin1HBOtkSWFxv0ljWapRgkth wF5nWeDGX9Es2FNFzbneU6SpZ2Ef8iHUwq80fQx+LqVRl/2DS9HwO/G/Ho+UzeKy IYGq8B2DkMYmMqYOpDqjBitdj65pN8FgLFmULsdWbI4q6NSx7x542+AOOw3f2JlZ HNu0mWJbGmVa+W4rrt879lOOgiTqzFqanP1OgEzEFJuZ3vHyHyU= =sTgk -----END PGP SIGNATURE-----