diff --git a/core/ruby/print.rb b/core/ruby/print.rb index a4a047d84..7921041d8 100644 --- a/core/ruby/print.rb +++ b/core/ruby/print.rb @@ -67,3 +67,11 @@ def print_more(s) end end end + +# +# Function used to print over the current line +# +def print_over(s) + time = Time.now.localtime.strftime("[%k:%M:%S]") + print "\r#{time}"+"[*]".blue+" #{s}" +end