def check_console_width(val):
 valid = True
 message = (('-' * val) + '\n')
 message += ('console_width set to %s, try a lower value if above line overlaps' % val)
 return dict(valid=valid, message=message)

def check_console_width ( val ) : valid = True message = ( ( '-' * val ) + '\n' ) message += ( 'console_width set to %s, try a lower value if above line overlaps' % val ) return dict ( valid = valid , message = message )
show ruler to check console width .