ó Y-Qc@s–dZddlZddlmZddlmZmZmZmZm Z m Z m Z m Z m Z mZddlmZddlmZdgZide 6d e6d!e6d"ej6d#e6d$ej6d%e j6d&ej6d'ej6d(ej6d)ej6d*ej6d+ej6d,ej6d-ej6d.ej6d/ej 6d0e6d1e 6d2e j!6d3e j"6d4e j#6d5e j$6d6e j 6d7e 6Z%defd„ƒYZ&dS(8sļ pygments.formatters.terminal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for terminal output with ANSI sequences. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. i’’’’N(t Formatter( tKeywordtNametCommenttStringtErrortNumbertOperatortGenerictTokent Whitespace(t ansiformat(tget_choice_opttTerminalFormattertt lightgraytdarkgrayttealt turquoisetdarkbluetbluetpurpletfuchsiat darkgreentgreent_teal_t _turquoise_t _darkgreen_t_green_tdarkredtredtbrowns**s*purple*s *fuchsia*t_red_cBsAeZdZdZddgZgZd„Zd„Zd„ZRS(sP Format tokens with ANSI color sequences, for output in a text console. Color sequences are terminated at newlines, so that paging the output works correctly. The `get_style_defs()` method doesn't do anything special since there is no support for common styles. Options accepted: `bg` Set to ``"light"`` or ``"dark"`` depending on the terminal's background (default: ``"light"``). `colorscheme` A dictionary mapping token types to (lightbg, darkbg) color names or ``None`` (default: ``None`` = use builtin colorscheme). tTerminaltterminaltconsolecKsStj||t|dddgdƒdk|_|jddƒpIt|_dS(Ntbgtlighttdarkt colorscheme(Rt__init__R tdarkbgtgettNonetTERMINAL_COLORSR'(tselftoptions((sF/usr/local/lib/python2.7/site-packages/pygments/formatters/terminal.pyR(Qs cCse|j rRt|dƒrRt|dƒrR|jƒrRtjdkrR|j|_ntj|||ƒS(Ntencodingtisattyi(i(R/thasattrR0tsyst version_infoRtformat(R-t tokensourcetoutfile((sF/usr/local/lib/python2.7/site-packages/pygments/formatters/terminal.pyR4Ws cCsöxļ|D]ē\}}|jj|ƒ}x,|dkrS|d }|jj|ƒ}q(W|rį||j}|jdƒ}x>|d D]2}|r¦|jt||ƒƒn|jdƒqW|drī|jt||dƒƒqīq|j|ƒqWdS(Ni’’’’s (R'R*R+R)tsplittwriteR (R-R5R6tttypetvaluetcolortspltline((sF/usr/local/lib/python2.7/site-packages/pygments/formatters/terminal.pytformat_unencoded`s    ( t__name__t __module__t__doc__tnametaliasest filenamesR(R4R>(((sF/usr/local/lib/python2.7/site-packages/pygments/formatters/terminal.pyR :s   (RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(RR(s**s**(s*purple*s *fuchsia*(RR(R R ('RAR2tpygments.formatterRtpygments.tokenRRRRRRRRR R tpygments.consoleR t pygments.utilR t__all__tPreproctTypetWordtBuiltintFunctiont NamespacetClasst Exceptiont DecoratortVariabletConstantt AttributetTagtDeletedtInsertedtHeadingt SubheadingR,R (((sF/usr/local/lib/python2.7/site-packages/pygments/formatters/terminal.pyt sB F