def terminal_info():
 return {u'size': terminal_size(), u'isatty': sys.stdout.isatty()}

def terminal_info ( ) : return { u'size' : terminal_size ( ) , u'isatty' : sys . stdout . isatty ( ) }
returns info we need about the output terminal .