def message(
    *tokens: Token,
    end: str = "\n",
    sep: str = " ",
    fileobj: FileObj = sys.stdout,
    update_title: bool = False
) -> None:
    """ Helper method for error, warning, info, debug

    """
    if using_colorama():
        global _INITIALIZED
        if not _INITIALIZED:
            colorama.init()
            _INITIALIZED = True
    with_color, without_color = process_tokens(tokens, end=end, sep=sep)
    if CONFIG["record"]:
        _MESSAGES.append(without_color)
    if update_title and with_color:
        write_title_string(without_color, fileobj)
    to_write = with_color if config_color(fileobj) else without_color
    write_and_flush(fileobj, to_write)
def message ( * tokens : Token , end : str = "\n" , sep : str = " " , fileobj : FileObj = sys . stdout , update_title : bool = False ) -> None : if using_colorama ( ) : global _INITIALIZED if not _INITIALIZED : colorama . init ( ) _INITIALIZED = True with_color , without_color = process_tokens ( tokens , end = end , sep = sep ) if CONFIG [ "record" ] : _MESSAGES . append ( without_color ) if update_title and with_color : write_title_string ( without_color , fileobj ) to_write = with_color if config_color ( fileobj ) else without_color write_and_flush ( fileobj , to_write )
Helper method for error, warning, info, debug