#NEWLINE# def cursor_up( self , amount ) : #NEWLINE# #INDENT# if ( amount == 0 ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( amount == 1 ) : #NEWLINE# #INDENT# self . write_raw ( '\x1b[A' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . write_raw ( ( '\x1b[%iA' % amount ) )