Skip to content

[BUG] Console.out() always enables highlighting by default #827

@serhiy-storchaka

Description

@serhiy-storchaka

Console.out() by default enables highlighting even if it is disabled in the Console constructor.

from rich.console import Console
console = Console(highlight=False)
console.print('cd /usr/lib')  # no hightlight
console.out('cd /usr/lib')  # hightlight

It is expected that Console.out() makes less changes to the output than Console.print().

It happens because the default value of hightlight is True in Console.out() and None in Console.print(). The fix is making it None.

rich 9.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions