macOs: Lag/delay in clearing terminal #11004
Replies: 5 comments 4 replies
-
|
I have just witnessed the behaviour again. I already had a Ghostty terminal open on one virtual desktop. I opened a new Ghostty window. Oh-my-zsh updated, then I cleared the terminal with command+k, but kept the command key pressed and although the prompt reset and jumped back to the top, the rest of the content remained until I depressed the command key. I'm unable to reproduce this on command, unfortunately. |
Beta Was this translation helpful? Give feedback.
-
|
This almost maybe possibly sounds like a dirty tracking issue... We may be able to reproduce this if you can record an asciinema of this happening. |
Beta Was this translation helpful? Give feedback.
-
|
Were either of you able to replicate the behaviour I'm seeing by running a |
Beta Was this translation helpful? Give feedback.
-
|
This problem still occurs even with the latest tip build, and is easily repeatable/reproducible. Another interesting point, this behaviour occurs with cmd+k but doesn't happen if I use ctrl+L, so I'm guessing these are two completely different features? Even the cursor behaviour is different between these two things and I don't see ctrl+L configured in ghostty's keybindings. 🙈 |
Beta Was this translation helpful? Give feedback.
-
|
I'm able to reproduce this reliably. If the cursor is far enough down the screen, cmd+k only clears the first few lines, then the rest are cleared when cmd is released. Just recorded a video and asciicast on f65fb3d debug-slow (but this is present on 1.3.1). https://asciinema.org/a/901609 cast.webm |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When using command+k to clear the current tab, very occasionally, the cursor and prompt jumps back to the top, as expected, but the content remains on the display
for a short time (perhaps 1-2 seconds)until the command key is released before the pane is redrawn and the content disappears.On a Macbook Pro
16-inch, Nov 2023
Mac OS Tahoe 26.3
Apple M3 Max
64 GB
I've seen this periodically over the last month or so, but don't recall seeing it at the back end of 2025.
This can happen even on a fresh terminal with very little scrollback. I often find myself clearing the terminal very often, which is why I've seen this a few times now.
Expected Behavior
The tab is redrawn immediately and the old content disappears immediately.
Actual Behavior
The correct behaviour is seen 99% of the time. Occasionally, the content remains until the command key is released.
Reproduction Steps
k)Ghostty Logs
No response
Ghostty Version
OS Version Information
MacOS Tahoe 26.3
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions