How to? ctrl-c does not prompt "Terminate batch job"

Nov 1, 2013
2
0
In TCC it seems ctrl-c immediately terminates the current batch file (but continues parent batch files).

I do not get any "Terminate batch job (Y/N)?" prompt the way I do in CMD.

Is this expected behavior? Is there a setting I can change to make it behave like CMD?

Simple test :

z1.bat :
call z2.bat
echo after z2

z2.bat :
pause

If I hit ctrl-c at the pause under TCC I always see the "after z2"
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
Type OPTION and press Enter. Select the Startup tab, then look for the option "Cancel Batch File on Ctrl-C" (at the upper right). Turn off the tick box, then click on OK.
 
Nov 1, 2013
2
0
Thanks much!

Also for my own reference, TCC's Y/N/A is rather confusingly different from CMD's Y/N

CMD Y = TCC A (terminate all)
CMD N = TCC Y (terminate current)
 
Similar threads
Thread starter Title Forum Replies Date
M Ctrl-C when using command line history does nothing Support 2
E Ctrl-V does not always work in BDEBUGGER Support 4
J CTRL-C does not work on Windows 7 64-bit Support 3
dcantor Does variable expansion (ctrl-x) actually work? Support 27
R Emacs-style cmdline editing Ctrl-K Support 0
vefatica Can I alias @@Ctrl-Shift-Alt-u? Support 4
cgunhouse Ctrl-C from within a library function Support 6
Alpengreis Fixed [v26.00.26] Crash after answering INKEY with <Ctrl>+C Support 1
vefatica Ctrl-F? Support 3
MickeyF expand alias in cmdline with Ctrl-F in TCC Support 21
MickeyF Ctrl-S and Ctrl-Q in TCC Support 6
Peter Murschall IDE: Ctrl-W is a Harakiri Command ! Support 23
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
samintz TCEDIT Ctrl-S Support 2
vefatica Ctrl-Alt-L (R, Left, Right). Support 8
V Ctrl-Home/End don't work in Win10 Support 3
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
vefatica TPIPE.EXE crashes on Ctrl-C Support 9
Peter Murschall IDE destroys Text on Ctrl-U/Ctrl-Shift-U Support 12
vefatica Ctrl-Enter in command history window? Support 8
vefatica TPIPE crashes on Ctrl-C Support 1
cgunhouse Ctrl + Shift keys and Paste (drop down menu and V) Support 4
M View doesn't recognize Ctrl+End and Ctrl+Pos1 Support 2
M Ctrl-End doesn't work. DelToEnd is not executed Support 13
C Output continues after Ctrl-Break Support 8
J How to? Debug Keyboard Shortcuts (Ctrl-A not remapping?) Support 8
Jay Sage Ctrl-C Not Working Reliably to Copy Screen Content Support 4
vefatica Ctrl-x? Support 13
vefatica Ctrl-T and Ctrl-Shift-T Support 6
P Disable global hotkey Ctrl+Shift+T Support 19
vefatica DATEMONITOR + Ctrl-C crashes TCCv15 Support 5
dcantor Fixed Ctrl+Shift+Insert repeats last character Support 3
A WAD No newlines in copy with Ctrl-Ins Support 2
A Ctrl-1 and the command history Support 5
vefatica Ctrl-Up/Down? Support 21
vefatica Should Ctrl-C interrupt a COPY? Support 2
M Ctrl-C and Java Support 19
K Ctrl-D alias no longer works Support 4
vefatica Ctrl-F1? Support 0
E Ctrl+C not working as expected Support 8
Juanma Barranquero Ctrl-C trouble Support 1
Fross CTRL-C in V10 Support 3
S Ctrl-C handling while piping Support 0
vefatica .PL and Ctrl-C Support 3
vefatica LIST, Ctrl-C leaves visual artifact Support 0
D Parsing an array variable to an array does not work Support 5
J Take command does not start on Windows 10 Support 3
J ffind does not find files Support 4
Joe Caverly PAUSE does not erase countdown timer Support 0
D ParentDirectory does not update directory history Support 6

Similar threads