some work on the printing functions
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1108 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -244,6 +244,8 @@ def print_error(msg, back = False):
|
||||
writechar("\r"+red(">>")+" "+msg)
|
||||
return
|
||||
setcols()
|
||||
reset_cursor()
|
||||
writechar("\r")
|
||||
print darkred(">>")+" "+msg
|
||||
|
||||
def print_info(msg, back = False):
|
||||
@@ -254,6 +256,7 @@ def print_info(msg, back = False):
|
||||
writechar("\r"+green(">>")+" "+msg)
|
||||
return
|
||||
setcols()
|
||||
reset_cursor()
|
||||
writechar("\r")
|
||||
print green(">>")+" "+msg
|
||||
|
||||
@@ -265,6 +268,7 @@ def print_warning(msg, back = False):
|
||||
writechar("\r"+red(">>")+" "+msg)
|
||||
return
|
||||
setcols()
|
||||
reset_cursor()
|
||||
writechar("\r")
|
||||
print red(">>")+" "+msg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user