Answers for "wait for user input before next line tcl"

0

wait for user input before next line tcl

proc pause {{message "Hit Enter to continue ==> "}} {
    puts -nonewline $message
    flush stdout
    gets stdin
}

pause "Hurry, hit enter: "; # Sample usage 1
pause;                      # Sample usage 2, use default message
Posted by: Guest on March-31-2020

Code answers related to "wait for user input before next line tcl"

Browse Popular Code Answers by Language