New support for Ghostty terminal emulator

* lisp/faces.el (term-file-aliases): Alias xterm-ghostty to
ghostty.
* lisp/term/ghostty.el: New file.
This commit is contained in:
Jared Finder 2026-09-07 21:00:11 -07:00 committed by Sean Whitton
parent 63d2a70a42
commit bfdc20a1c4
2 changed files with 20 additions and 1 deletions

View file

@ -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."

18
lisp/term/ghostty.el Normal file
View file

@ -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