Skip to content

Ansi codes are not properly handled by cmd.exe #784

@jsmif

Description

@jsmif

In cmd.exe on Windows, the output of bumble looks kind of horrible. There's all sorts of stray things like ←[0m making the text pretty hard to read.

←[33mL2CAP_DISCONNECTION_RESPONSE←[0m [ID=3]:
  ←[36mdestination_cid:←[0m 64
  ←[36msource_cid:     ←[0m 64

or

    ←[36mprimary_phy:                  ←[0m LE_1M
    ←[36msecondary_phy:                ←[0m Phy[0]
    ←[36madvertising_sid:              ←[0m 255
    ←[36mtx_power:                     ←[0m 127
    ←[36mrssi:                         ←[0m -72
    ←[36mperiodic_advertising_interval:←[0m 0
    ←[36mdirect_address_type:          ←[0m PUBLIC_DEVICE
    ←[36mdirect_address:               ←[0m 00:00:00:00:00:00/P

This sort of issue was described here and seems to have something to do with colorama initialization requirements.

Is there any workaround / should I be using some other environment other than cmd.exe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions