def _writeline(text):
 width = util.getxy().width
 spaces = ((width - len(text)) - 1)
 if mswin:
  spaces = (-1)
 text = text[:(width - 3)]
 sys.stdout.write((((' ' + text) + (' ' * spaces)) + '\r'))
 sys.stdout.flush()

def _writeline ( text ) : width = util . getxy ( ) . width spaces = ( ( width - len ( text ) ) - 1 ) if mswin : spaces = ( - 1 ) text = text [ : ( width - 3 ) ] sys . stdout . write ( ( ( ( ' ' + text ) + ( ' ' * spaces ) ) + '\r' ) ) sys . stdout . flush ( )
print text on same line .