Created print_over to allow for printing over the same line

git-svn-id: https://beef.googlecode.com/svn/trunk@1255 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
passbe
2011-09-02 23:53:53 +00:00
parent ca4e2d18f5
commit 93b289c353

View File

@@ -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