Fixed DO, OSD, and cancel batch prompt

May 20, 2008
12,175
133
Syracuse, NY, USA
When I run this BTMfile,
Code:
do forever
    echo %_do_loop
    osd /id=1 /n foo
    delay 1
    osd /c=1
enddo
and press Ctrl-C and answer "N" to the cancel batch prompt, I get an unending series of cancel batch prompts. If I keep answering "N", they keep coming. Without the DELAY the same thing happens.
Code:
v:\> cancel.btm
1
2
3
4
^C
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
5
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
6
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
7
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
8
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
9
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
10
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
11
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
 
May 20, 2008
12,175
133
Syracuse, NY, USA
I'm not sure what you were expecting the ^C to do, but I've changed OSD in build 42 to ignore ^C's when you're running asynchronously (/n).
I was expecting Ctrl-C + N to continue the batch file (not keep giving me the cancel prompt).
 

Similar threads