libghostty-vt: preserve shell prompts on resize by default (#12653)
This PR makes libghostty-vt preserve shell prompts across resize unless the shell explicitly opts into prompt clearing/redraw with `redraw=1`.pull/12860/head
commit
90175950d5
|
|
@ -266,6 +266,11 @@ fn new_(
|
||||||
});
|
});
|
||||||
errdefer t.deinit(alloc);
|
errdefer t.deinit(alloc);
|
||||||
|
|
||||||
|
// libghostty-vt embedders don't necessarily install Ghostty's shell
|
||||||
|
// integration, so don't assume OSC 133 prompts can be redrawn on resize.
|
||||||
|
// Shells can still opt in with OSC 133;A;redraw=1.
|
||||||
|
t.flags.shell_redraws_prompt = .false;
|
||||||
|
|
||||||
// Setup our stream with trampolines always installed so that
|
// Setup our stream with trampolines always installed so that
|
||||||
// setting C callbacks at any time takes effect immediately.
|
// setting C callbacks at any time takes effect immediately.
|
||||||
var handler: Stream.Handler = t.vtHandler();
|
var handler: Stream.Handler = t.vtHandler();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue