[1/2] cmd: Add handler support for Ctrl-C and Ctrl-Break events

Hugh McMaster hugh.mcmaster at masterindexing.com
Sun Aug 11 03:33:16 CDT 2013


Jason Edmeades and I have developed a patch that handles Ctrl-C and Ctrl-Break events in wineconsole's cmd.exe.

The patch supports interactive mode, batch contexts and both the cmd /c and cmd /k modes, meaning that pressing Ctrl-C no longer closes cmd.exe.

For loops, commands such as 'dir /s /w' and other such commands can be stopped. Batch scripts prompt the user whether the current batch execution should end.

---
 programs/cmd/builtins.c |   95 ++++++++++++++++++++++++++++++++++++++++++-----
 programs/cmd/cmd.rc     |    2 +
 programs/cmd/wcmd.h     |    7 ++++
 programs/cmd/wcmdmain.c |   65 +++++++++++++++++++++++++++++++-
 4 files changed, 158 insertions(+), 11 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-ctrl-c.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130811/7eba86cb/attachment.txt>


More information about the wine-patches mailing list