<s> COLOR_ADDR_SIZE = <NUM_LIT:16> if _idaapi . BADADDR == <NUM_LIT> L else <NUM_LIT:8> <EOL> SCOLOR_FG_MAX = '<STR_LIT>' <EOL> SCOLOR_OPND1 = chr ( cvar . COLOR_ADDR + <NUM_LIT:1> ) <EOL> SCOLOR_OPND2 = chr ( cvar . COLOR_ADDR + <NUM_LIT:2> ) <EOL> SCOLOR_OPND3 = chr ( cvar . COLOR_ADDR + <NUM_LIT:3> ) <EOL> SCOLOR_OPND4 = chr ( cvar . COLOR_ADDR + <NUM_LIT:4> ) <EOL> SCOLOR_OPND5 = chr ( cvar . COLOR_ADDR + <NUM_LIT:5> ) <EOL> SCOLOR_OPND6 = chr ( cvar . COLOR_ADDR + <NUM_LIT:6> ) <EOL> SCOLOR_UTF8 = chr ( cvar . COLOR_ADDR + <NUM_LIT:10> ) <EOL> PALETTE_SIZE = ( cvar . COLOR_FG_MAX + _idaapi . COLOR_BG_MAX ) <EOL> def requires_color_esc ( c ) : <EOL> """<STR_LIT>""" <EOL> t = ord ( c [ <NUM_LIT:0> ] ) <EOL> return c >= COLOR_ON and c <= COLOR_INV <EOL> def COLSTR ( str , tag ) : <EOL> """<STR_LIT>""" <EOL> return SCOLOR_ON + tag + str + SCOLOR_OFF + tag </s>
