From 7c4099a7da2f8d44a1612765c1afaf901902d514 Mon Sep 17 00:00:00 2001 From: mboelen Date: Wed, 27 Apr 2016 16:14:22 +0200 Subject: Call WaitForKeypress from wait_for_keypress, and report this old function when called to developers --- include/functions | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'include/functions') diff --git a/include/functions b/include/functions index c0a56b9a..83346f50 100644 --- a/include/functions +++ b/include/functions @@ -2261,23 +2261,19 @@ exit 0 } - # Wait for [ENTER] or manually break - wait_for_keypress() - { - if [ ! ${QUICKMODE} -eq 1 ]; then - echo ""; echo "[ Press [ENTER] to continue, or [CTRL]+C to stop ]" - read void - fi - } + # Wait for [ENTER] or manually break (deprecated, will be removed later) + wait_for_keypress() { + if IsDeveloperMode; then Debug "Warning: old wait_for_keypress function is used"; fi + WaitForKeypress + } # Wait for [ENTER] or manually break - WaitForKeypress() - { + WaitForKeypress() { if [ ! ${QUICKMODE} -eq 1 ]; then echo ""; echo "[ Press [ENTER] to continue, or [CTRL]+C to stop ]" read void fi - } + } #================================================================================ -- cgit v1.2.3