Corruption in terminal rendering from weird escape sequences

12 views
Skip to first unread message

Ivo Popov

unread,
Apr 7, 2026, 8:06:20 PM (4 days ago) Apr 7
to chromium-hterm
Greetings!

TUI AI agents (such as gemini-cli) seem to exercise escape sequences heavily to render their UI's. I tend to use gemini-cli inside tmux inside ChromeOS Terminal. After a few minutes of using the thing, my ChromeOS terminal gets messed up somehow permanently, rendering certain letters wrong, spilling text from one tmux pane to the other, etc.

For example, right now, here's two different ChromeOS terminal views, both connected to the exact same tmux session:

Screenshot 2026-04-07 16.56.15.png

Screenshot 2026-04-07 16.56.23.png

In the first one, I did try to detach from tmux and run `reset` in the bare terminal, and upon reattaching, the problem persists.

I hacked a quick Python program to send random escape codes to stdout and that, too, seems to have a similar effect. Even after typing `reset`, sending a reset sequence, etc.

I'm curious- is there any reliable way to get hterm's state consistent again, short of closing the tab and logging in again. And, is there a way I could be helpful in debugging exactly escape codes these AI TUI's are sending to so reliably mess up hterm; and fixing it?

Thanks!

Ivo

Mike Frysinger

unread,
Apr 7, 2026, 8:08:37 PM (4 days ago) Apr 7
to Ivo Popov, chromium-hterm
the Terminl app doesn't use hterm.  you should file a bug for it instead.

(i'm seeing the same thing in 147.0.7727.45)
-mike

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/26e029bc-a086-4f46-9e76-0250e819f383n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages