Skip to content

[BUG] When the terminal executes specific commands that output colored text, it may display unexpected characters #150

@0xKaeruIO

Description

@0xKaeruIO

I encountered this issue when using bat to view files. I am sure that I do not have this problem locally or in other shell tools.

This issue only occurs when there are 2 or more users on the terminal page.

I reproduced it consistently by opening the page again in the browser's incognito mode to simulate a second user.

Steps to reproduce:

  1. Install bat

  2. Create a basic JSON file

echo '{"a":"b"}' > /tmp/sshx-terminal-issue.json
  1. Use bat to view the file in the terminal
bat /tmp/sshx-terminal-issue.json

Here is a screenshot showing the issue. The shell environment is zsh, and the same issue occurs in bash.

Image

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