Skip to content

Returning json characters issues on every line #384

@dougg0k

Description

@dougg0k

Hi,

I started using this tool as the pager and in one of the CLI tools that make use of the pager, returned a bad json when viewing it, however when saving to a file, the data were correct.

https://cli.github.com/

Repoduction:

gh api repos/walles/moor/issues/384

It shows additional characters on every line.

  1 ?[1;38m{
  2   "url"?[1;38m: "https://api.github.com/repos/walles/moor/issues/384"?[1;38m,
  3   "repository_url"?[1;38m: "https://api.github.com/repos/walles/moor"?[1;38m,
  4   "labels_url"?[1;38m: "https://api.github.com/repos/walles/moor/issues/384/labels{/name}"?[1;38m,
...
❯ moor --version
2.10.4

I also tried using moor as the bat tool default pager. Same result.

PAGER = "bat --force-colorization --style=full,-grid,-header --paging=always"
BAT_PAGER = "moor --no-linenumbers"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions