<<< Date Index >>>     <<< Thread Index >>>

Re: Exiting mutt from the file browser



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday, July 17 at 06:25 PM, quoth Andrew Haninger:
> Do I have to be returned to a mailbox before quitting?

Well... yes and no. To do it with the q key, yes. At the moment, the 
<quit> command (the method of quitting mutt that can be bound to any 
arbitrary key) is only available in the index environment (if you want 
it in other environments, like the browser, you'll need to submit a 
wishlist bug to bugs.mutt.org).

On the other hand, you may be able to short-circuit things temporarily 
by using keys other than q. Specifically, Control-C and Control-\ 
(control-C quits and asks you if you really want to first, control-\ 
terminates immediately).

On yet a third hand, you COULD try doing something *really* funky: 
using the stty tool to remap q to be equivalent to control-c. You can 
do that like this:

    stty intr q

Beware, though, by doing that you're mucking with your terminal rather 
than just mutt, so you need to undo that (by doing stty intr ^C) every 
time you don't want it anymore (i.e. after mutt exits, and before you 
invoke your $EDITOR to compose new messages) and redo it every time 
you do want it again (i.e. before mutt starts and after your $EDITOR 
exits). You'll probably need to create scripts for running both mutt 
and your $EDITOR so that stty gets abused properly.

~Kyle
- -- 
A deep unwavering belief is a sure sign that you're missing something.
                                                            -- Unknown
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFEvBL8BkIOoMqOI14RAmFUAKCYVjPDuY1wGomocNlrSmapCuIKKQCgv8M0
ow+FeqG5FDqAnctuGTcwGAQ=
=EBQs
-----END PGP SIGNATURE-----