Skip to content

Commit 0988f07

Browse files
StiensWoutclaude
andcommitted
fix(web): open a replayed terminal on a visible cursor
resetAndWrite replays a session buffer the same way write streams output, so it needs the same blink phase reset: a reattach that lands in the off phase otherwise shows no cursor for up to half a cycle. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent 40684b7 commit 0988f07

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/web/src/terminal/ghostty/surface.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,9 @@ export class GhosttyTerminalSurface {
514514
resetAndWrite(data: string): void {
515515
if (this.disposed) return;
516516
this.core.resetAndWrite(data);
517+
// A replayed session starts from the visible phase like any other write:
518+
// reattaching mid-blink must not open on an invisible cursor.
519+
this.cursorOn = true;
517520
this.forceFullRender = true;
518521
this.scrollbarDirty = true;
519522
this.requestRender();

0 commit comments

Comments
 (0)