On Thu, May 07, 2020 at 01:13:49PM +0200, Gero Treuner wrote:
> > > That's bad because it doesn't honor the way the user has configured
> > > his terminal. Moreover, I fear that in case of crash, this may leave
> > > the terminal settings in the altered state (zsh offers protection,
> > > though).
> > 
> > You convinced me with sufficient reasons that mutt should stay in cbreak
> > mode and therefore I will drop the merge request. But still I believe a
> > pointer to stty should be put into the manual. It took me several days to
> > understand why mutt did not manage to use CTRL-Y while vim did.
> 
> I don't think that raw mode per se changes the terminal configuration.
> From my understanding it just means that handling is taken by Mutt then,
> and if that logic uses alternate configuration sources (if a key is
> mapped in Mutt, where collisions with stty keys better are shown) the
> terminal device doesn't care.

Ok, got it. The raw mode itself could stay after exit. Yes, that should
be restored even for emergency exits.


Gero

Reply via email to