From bfdc20a1c418660124f74e99425fa9e584fcb779 Mon Sep 17 00:00:00 2001 From: Jared Finder Date: Mon, 7 Sep 2026 21:00:11 -0700 Subject: [PATCH] New support for Ghostty terminal emulator * lisp/faces.el (term-file-aliases): Alias xterm-ghostty to ghostty. * lisp/term/ghostty.el: New file. --- lisp/faces.el | 3 ++- lisp/term/ghostty.el | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 lisp/term/ghostty.el diff --git a/lisp/faces.el b/lisp/faces.el index 94da4ba0290..5aaf6c7453b 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -48,7 +48,8 @@ the terminal-initialization file to be loaded." ("vt420" . "vt200") ("alacritty" . "xterm") ("foot" . "xterm") - ("contour" . "xterm")) + ("contour" . "xterm") + ("xterm-ghostty" . "ghostty")) "Alist of terminal type aliases. Entries are of the form (TYPE . ALIAS), where both elements are strings. This means to treat a terminal of type TYPE as if it were of type ALIAS." diff --git a/lisp/term/ghostty.el b/lisp/term/ghostty.el new file mode 100644 index 00000000000..5d710dd116a --- /dev/null +++ b/lisp/term/ghostty.el @@ -0,0 +1,18 @@ +;;; ghostty.el --- terminal initialization for Ghostty -*- lexical-binding:t -*- + +;; Copyright (C) 2026 Free Software Foundation, Inc. + +;;; Commentary: + +;; Support for Ghostty terminal. +;; https://ghostty.org/ + +(require 'term/xterm) + +(defun terminal-init-ghostty () + "Terminal initialization function for Ghostty." + (tty-run-terminal-initialization (selected-frame) "xterm")) + +(provide 'term/ghostty) + +;;; ghostty.el ends here