def block_print(higher, lower):
 (r0, g0, b0) = lower[:3]
 (r1, g1, b1) = higher[:3]
 if (c['24BIT'] is True):
  sys.stdout.write(('\x1b[38;2;%d;%d;%dm\x1b[48;2;%d;%d;%dm\xe2\x96\x84\x1b[0m' % (r1, g1, b1, r0, g0, b0)))
 else:
  i0 = rgb2short(r0, g0, b0)
  i1 = rgb2short(r1, g1, b1)
  sys.stdout.write(('\x1b[38;5;%sm\x1b[48;5;%sm\xe2\x96\x84\x1b[0m' % (i1, i0)))

def block_print ( higher , lower ) : ( r0 , g0 , b0 ) = lower [ : 3 ] ( r1 , g1 , b1 ) = higher [ : 3 ] if ( c [ '24BIT' ] is True ) : sys . stdout . write ( ( '\x1b[38;2;%d;%d;%dm\x1b[48;2;%d;%d;%dm\xe2\x96\x84\x1b[0m' % ( r1 , g1 , b1 , r0 , g0 , b0 ) ) ) else : i0 = rgb2short ( r0 , g0 , b0 ) i1 = rgb2short ( r1 , g1 , b1 ) sys . stdout . write ( ( '\x1b[38;5;%sm\x1b[48;5;%sm\xe2\x96\x84\x1b[0m' % ( i1 , i0 ) ) )
print two pixels arranged above each other with ansi color .