📜  在下一行 tcl 之前等待用户输入 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:38.458000             🧑  作者: Mango

代码示例1
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