RE: cmd: Disable Ctrl-C interrupt

2013-06-06 Thread Hugh McMaster
On Thursday, 6 June 2013 6:22 AM, Jason Edmeades wrote:

>I do not think this patch is enough - From memory (I once tried something 
>similar) the problem with resolving it the way you have is you then lose
>the ability of breaking out of a batch program. I think the right solution 
>needs an actual handler which resets back to the command prompt mode, 
>optionally asking something like whether you want to end the program or not 
>(with a no continuing from where it left off, with consideration
>around for loops etc!).

>I would suggest it's better to allow control c for now rather than get into 
>situations you cannot terminate

Hi Jason,

You raise some valid points here, particularly regarding batch programs.

I've got some ideas on how to achieve this behaviour, though, so I'll keep 
going with this issue.

Hugh 




Re: cmd: Disable Ctrl-C interrupt

2013-06-05 Thread Jason Edmeades
Hi Hugh,

Thanks for looking at this issue with wine's cmd

I do not think this patch is enough - From memory (I once tried
something similar) the problem with resolving it the way you have is
you then lose the ability of breaking out of a batch program. I think
the right solution needs an actual handler which resets back to the
command prompt mode, optionally asking something like whether you want
to end the program or not (with a no continuing from where it left
off, with consideration around for loops etc!).

I would suggest it's better to allow control c for now rather than get
into situations you cannot terminate

Jason