FLAG_TKI_STOP

flag_tki_stop
This flag is set by Util::stop_moves() which is called by the toplevel stop button. It has to be reset by the user.

$Spectra::SYM{ FLAG_TKI_STOP} = 0; 
while(1)
{
    ...
    last if( $Spectra::SYM{ FLAG_TKI_STOP});
    ...
}