#NEWLINE# def console_fill_char( con , arr ) : #NEWLINE# #INDENT# if ( numpy_available and isinstance ( arr , numpy . ndarray ) ) : #NEWLINE# #INDENT# arr = numpy . ascontiguousarray ( arr , dtype = numpy . int32 ) #NEWLINE# carr = arr . ctypes . data_as ( POINTER ( c_int ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# carr = struct . pack ( ( '%di' % len ( arr ) ) , * arr ) #NEWLINE# #UNINDENT# _lib . TCOD_console_fill_char ( con , carr )