From 425c86179791cd32e2d4ce0ae7f269940b4b0663 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 21:51:57 +0300 Subject: chore: upgrade libghostty and preserve terminal behavior (#3906) --- scripts/generate_libghostty_bindings.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/generate_libghostty_bindings.sh (limited to 'scripts') diff --git a/scripts/generate_libghostty_bindings.sh b/scripts/generate_libghostty_bindings.sh new file mode 100644 index 00000000..c87efca7 --- /dev/null +++ b/scripts/generate_libghostty_bindings.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname "$0")/.." + +# Additional clang arguments can supply a resource directory on minimal hosts. +"${BINDGEN:-bindgen}" vendor/libghostty-vt/include/ghostty/vt.h \ + --allowlist-type 'Ghostty.*' \ + --allowlist-function 'ghostty_.*' \ + --allowlist-var 'GHOSTTY_.*' \ + --with-derive-default \ + --output src/ghostty/bindings.rs \ + -- -Ivendor/libghostty-vt/include "$@" -- cgit v1.2.3