[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:
Install bat
Create a basic JSON file
echo '{"a":"b"}' > /tmp/sshx-terminal-issue.json- Use bat to view the file in the terminal
bat /tmp/sshx-terminal-issue.jsonHere is a screenshot showing the issue. The shell environment is zsh, and the same issue occurs in bash.
Source: ekzhang/sshx