From 07cc38e973a6037649083494332fbae1946b48b4 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 8 Mar 2022 22:28:48 +0100 Subject: global-functions: (re-)introduce global $Read ... to interactively read input from user on terminal. --- global-functions | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'global-functions') diff --git a/global-functions b/global-functions index f207ac8..af617b3 100644 --- a/global-functions +++ b/global-functions @@ -38,6 +38,7 @@ :global ParseKeyValueStore; :global QuotedPrintable; :global RandomDelay; +:global Read; :global RequiredRouterOS; :global ScriptFromTerminal; :global ScriptInstallUpdate; @@ -636,6 +637,11 @@ :delay ([ $GetRandomNumber $1 ] . [ $EitherOr $2 "s" ]); } +# read input from user +:set Read do={ + :return; +} + # check for required RouterOS version :set RequiredRouterOS do={ :local Caller [ :tostr $1 ]; -- cgit v1.2.3-70-g09d2