Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Crash report: C-\ in inbox-mode raises an exception
@ 2008-04-30 11:41 Kevin Riggle
  2008-05-01 21:24 ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Riggle @ 2008-04-30 11:41 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] Crash report: C-\ in inbox-mode raises an exception
  2008-04-30 11:41 [sup-talk] Crash report: C-\ in inbox-mode raises an exception Kevin Riggle
@ 2008-05-01 21:24 ` William Morgan
  2008-05-02  5:00   ` Kevin Riggle
  2008-05-02 14:01   ` Marc Hartstein
  0 siblings, 2 replies; 5+ messages in thread
From: William Morgan @ 2008-05-01 21:24 UTC (permalink / raw)


Hi Kevin,

Reformatted excerpts from Kevin Riggle's message of 2008-04-30:
> I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
> 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>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] Crash report: C-\ in inbox-mode raises an exception
  2008-05-01 21:24 ` William Morgan
@ 2008-05-02  5:00   ` Kevin Riggle
  2008-05-02 14:01   ` Marc Hartstein
  1 sibling, 0 replies; 5+ messages in thread
From: Kevin Riggle @ 2008-05-02  5:00 UTC (permalink / raw)


Excerpts from William Morgan's message of Thu May 01 17:24:17 -0400 2008:
> Hi Kevin,
> 
> Reformatted excerpts from Kevin Riggle's message of 2008-04-30:
> > I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
> > 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.
> 
*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
-- 
Kevin Riggle (kevinr at mit.edu) 
http://free-dissociation.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] Crash report: C-\ in inbox-mode raises an exception
  2008-05-01 21:24 ` William Morgan
  2008-05-02  5:00   ` Kevin Riggle
@ 2008-05-02 14:01   ` Marc Hartstein
  2008-05-02 14:14     ` Marcus Williams
  1 sibling, 1 reply; 5+ messages in thread
From: Marc Hartstein @ 2008-05-02 14:01 UTC (permalink / raw)


Excerpts from William Morgan's message of Thu May 01 17:24:17 -0400 2008:
> Reformatted excerpts from Kevin Riggle's message of 2008-04-30:
> > I accidentally hit <control>-\ in inbox-mode in Sup, immediately after
> > 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.

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>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] Crash report: C-\ in inbox-mode raises an exception
  2008-05-02 14:01   ` Marc Hartstein
@ 2008-05-02 14:14     ` Marcus Williams
  0 siblings, 0 replies; 5+ messages in thread
From: Marcus Williams @ 2008-05-02 14:14 UTC (permalink / raw)


On 2.5.2008, Marc Hartstein wrote:
> 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.

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

Marcus


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-02 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-30 11:41 [sup-talk] Crash report: C-\ in inbox-mode raises an exception Kevin Riggle
2008-05-01 21:24 ` William Morgan
2008-05-02  5:00   ` Kevin Riggle
2008-05-02 14:01   ` Marc Hartstein
2008-05-02 14:14     ` Marcus Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox