Skip to content

turning on color support for custom terminals #5

@ayinger1

Description

@ayinger1

in the docs, it says if chromalog detects non-color supporting terminal, it will fall back on monochrome. but i have a custom terminal (written in java) where i would like to launch a python process (using chromalog) and have it continue to output ansi color codes, even though chromalog thinks the python process is running in non-ansi environment.

so, is there a way to turn off this auto-detecting ansi terminal behavior, so that it always logs with ansi codes?

(looking thru the code i see that in stream.py, function stream_has_color_support checks for color support:
getattr(stream, 'isatty', lambda: False)()

is there a simple way to initialize logging with a stream where the 'isatty' is set to True?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions