mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-02 01:48:08 +00:00
libghostty-vt: preserve shell prompts on resize by default
This PR makes libghostty-vt preserve shell prompts across resize unless the shell explicitly opts into prompt clearing/redraw with `redraw=1`.
This commit is contained in:
@@ -259,6 +259,11 @@ fn new_(
|
||||
});
|
||||
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
|
||||
// setting C callbacks at any time takes effect immediately.
|
||||
var handler: Stream.Handler = t.vtHandler();
|
||||
|
||||
Reference in New Issue
Block a user