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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user