#NEWLINE# def test_colors_xterm( self ) : #NEWLINE# #INDENT# ' Do xterm-specific control sequences for colors work?\n        ' #NEWLINE# string = '\x1b]4;20;rgb:ff/ff/ff\x1b\x1b]4;25;rgbi:1.0/1.0/1.0\x1b' #NEWLINE# substrings = list ( self . processor . split_string ( string ) ) #NEWLINE# desired = { #NEWLINE# #INDENT# 20 : ( 255 , 255 , 255 ) , #NEWLINE# 25 : ( 255 , 255 , 255 ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEquals ( self . processor . color_map , desired ) #NEWLINE# string = '\x1b[38;5;20m\x1b[48;5;25m' #NEWLINE# substrings = list ( self . processor . split_string ( string ) ) #NEWLINE# self . assertEquals ( self . processor . foreground_color , 20 ) #NEWLINE# self . assertEquals ( self . processor . background_color , 25 )