Subject: [sup-talk] Crash report: C-\ in inbox-mode raises an exception

From: [email-masked] (Kevin Riggle)
Date: Wed, 30 Apr 2008 07:41:06 -0400

I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
opening the application, which caused it to crash.  
~/.sup/exception-log.txt contains:

--- SignalException from thread: main
SIGQUIT
./lib/sup/buffer.rb:31:in `select'
./lib/sup/buffer.rb:31:in `nonblocking_getch'
bin/sup:227

FYI.

- Kevin
-- 
Kevin Riggle (kevinr at mit.edu) 
http://free-dissociation.com

---

From: [email-masked] (William Morgan)
Date: Thu, 01 May 2008 14:24:17 -0700

Hi Kevin,

> opening the application, which caused it to crash.  

That's a standard UNIX keybinding like ^C. I could trap it, but I think
you'll find most other curses programs die if you press it.

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Kevin Riggle)
Date: Fri, 02 May 2008 01:00:39 -0400

> you'll find most other curses programs die if you press it.
*wikipedias*  

...oh.  Hunh.  Right you are.  I didn't know that.  ("You mean dumping 
core is the /desired/ behavior?!")  It would be nice if the error 
message was a little bit more informative (mutt's response is "Caught 
signal 3...  Exiting."), but the behavior itself is clearly not a bug.

Thanks for the response.

- Kevin

---

From: [email-masked] (Marc Hartstein)
Date: Fri, 02 May 2008 10:01:41 -0400

> you'll find most other curses programs die if you press it.

It might be nice to provide a "paranoid-quit" option which, like Mutt,
prompts for "are you sure, or did you just hit the wrong key?", and, if
on, bind that routine to all of 'q', SIGINT, and SIGQUIT.

(I keep wanting ^C to interrupt a long-running process within sup like a
!!, and being surprised when it quits and I'm reminded I need to ^G.
And q is way too dangerously easy to hit for someone who migrated over
from Mutt.  I'd definitely turn that on, at least for a few months until
the proper keybindings stick in my mind.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080502/50d1d458/attachment.bin>

---

From: [email-masked] (Marcus Williams)
Date: Fri, 02 May 2008 15:14:21 +0100

> on, bind that routine to all of 'q', SIGINT, and SIGQUIT.

Nicer would be make 'q' ask, and 'Q' quit without asking....

Marcus