diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-19 14:47:18 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-19 14:47:18 +0300 |
| commit | cc7c696cd0772e466da403eb4e3f00f4e8d8ae1e (patch) | |
| tree | d8325f7f2fb1ac53613ae56e8215042e6d497dd9 /vendor/libghostty-vt/include/ghostty/vt | |
| parent | 3f2a6e743f67bc947cfa06be25df106d00b9ee11 (diff) | |
feat: add configurable pane screen and scrollback clearing (#4383)
Diffstat (limited to 'vendor/libghostty-vt/include/ghostty/vt')
| -rw-r--r-- | vendor/libghostty-vt/include/ghostty/vt/terminal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/include/ghostty/vt/terminal.h b/vendor/libghostty-vt/include/ghostty/vt/terminal.h index ad5eec54..81f9ebd0 100644 --- a/vendor/libghostty-vt/include/ghostty/vt/terminal.h +++ b/vendor/libghostty-vt/include/ghostty/vt/terminal.h @@ -2008,6 +2008,14 @@ GHOSTTY_API void ghostty_terminal_free(GhosttyTerminal terminal); GHOSTTY_API void ghostty_terminal_reset(GhosttyTerminal terminal); /** + * Clear screen and history, retaining the cursor's soft-wrapped active line. + * Does not alter the VT parser or write to the child process. Returns false + * without changing the terminal on the alternate screen or for a NULL handle. + * Otherwise returns true and moves the retained line to the top of the screen. + */ +GHOSTTY_API bool ghostty_terminal_clear_screen(GhosttyTerminal terminal); + +/** * Resize the terminal to the given dimensions. * * Changes the number of columns and rows in the terminal. The primary |
