#150·sshx

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

Author: 0xKaeruIOCreated May 21, 2026Updated May 21, 2026

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