Ansi codes are not properly handled by cmd.exe
- Dominant language
- Python
- Stars
- 555
- Forks
- 138
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 9
Description
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](https://github.com/pdm-project/pdm/issues/939) 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?
Contributor guide
Assessment
This issue has not been assessed yet.