def check_console_width(val):
    """ Show ruler to check console width. """
    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)
