-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESC[0m
won't reset colors if followed by new line
#18378
Comments
This is not a Cockpit bug, but a terminal emulation bug. We use xterm.js to render the console, specifically version That said, VS Code also uses xterm.js — and I tested it in VS Codium and got this: So at least one implementation is correct... but they're using a different renderer by default (at least on my system). As VS Code uses Electron, I also tried Cockpit in Chrome (as they'd effectively use the same browser engine). The this bug still shows up in Cockpit's terminal: But in VS Codium have "auto" as my renderer: When I switch the renderer to "canvas", I see the bug in VS Codium too: Here's the upstream issue @ xterm.js: We'll have to wait for upstream to fix this and we'll update the dependency when they do. |
Let's wait for xterm.js change then |
The new version of xterm has been released for several weeks. Does the problem still exist? |
We can't update to xterm 5.2, as that breaks the accessibility tree: xtermjs/xterm.js#4571 . |
xterm.js fixed the accessibility tree in the PR @ xtermjs/xterm.js#4637 — we should consider updating. |
It's fixed in 5.3.0 |
Explain what happens
echo -e '\033[41;31m!\033[0m\n'
Expected: (iTerm2)
Actual: (Cockpit)
Version of Cockpit
285
Where is the problem in Cockpit?
Terminal
Server operating system
Fedora
Server operating system version
Linux eoitek.net 6.2.0-0.rc8.20230217gitec35307e18ba.60.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Feb 17 16:19:48 UTC 2023 x86_64 GNU/Linux
What browsers are you using?
Chrome, Edge
System log
No response
The text was updated successfully, but these errors were encountered: