aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /scripts
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generate_libghostty_bindings.sh12
1 files changed, 12 insertions, 0 deletions
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 "$@"