ctrl-brk should break out of it. It doesn’t halt things right away though, it will finish executing all the statements in the current loop before stopping. So depending on what your script is doing, it can take a few seconds to a few minutes. An example:
while (1)
section_A
for i = 1 to 10
section_B
end
section_C
end
If you were to hit ctrl-brk inside the inner loop, all of section_B will be executed, and all of
section_C will be executed. If you were to hit ctrl-brk while touch is executing section_A,
then only section_A and section_C will be executed before stopping.
Selina