Skip to content

ANSI Escape Sequences Not Rendering Properly in "Window Console Host" when Retrieving Answers from OpenAI API #98

Open
@johnd0e

Description

@johnd0e

When using the latest version (mods do you like kittens) or v0.2 when piped to glow (mods do you like kittens | glow), ANSI escape sequences are not being rendered correctly in the "Window Console Host." Instead, raw codes like ←[38;5;252m←[0m←[38;5;252m←[0m ←[38;5;252m are displayed.

  1. This issue is specific to retrieving answers from the OpenAI API. Other cases such as usage messages and error messages display correctly.
  2. The issue is only observed in the "Window Console Host." "Windows Terminal" functions as expected with no display problems.

Although this issue is likely related to the "Window Console Host," there may be potential workarounds or solutions that could address the problem and improve the rendering of ANSI escape sequences in this context. Any insights or suggestions to resolve this issue would be greatly appreciated.

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