Replies: 2 comments 2 replies
-
Discussion until it's directly actionable by a contributor. At this point, investigation needs to be done. I think this is a shell bug and not Ghostty. Fish in particular I believe doesn't re-trigger the prompt start event on FF. Is this what's happening? |
Beta Was this translation helpful? Give feedback.
-
This is definitely not handled by Ghostty at all. This sends
Traditionally because we don't know where prompts are and this is the ancient terminal behavior to ask it to redraw a new page (form feed -- you put in new paper into your metaphorical physical terminal and you're asking to feed a new page). When we do know where prompts are, I don't know. I think this is an area I'm willing to have re-researched how other terminals that support OSC 133 handle their clear screen actions. The clear screen stuff hasn't been touched in probably over a year besides basic code reshuffling...
Take a look at |
Beta Was this translation helpful? Give feedback.
-
When I press ⌘K to
clear_screen
, Ghostty clears everything except the current prompt, but it forgets that it's a prompt. I've confirmed this in three different ways:jump_to_prompt
won't jump to that first promptThe reason I actually noticed this is that pressing ⌘K twice in a row was deleting the first line of my two-line prompt, though the confirm to close thing is a bit annoying too.
Beta Was this translation helpful? Give feedback.
All reactions