mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
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:
parent
63d2a70a42
commit
bfdc20a1c4
|
|
@ -48,7 +48,8 @@ the terminal-initialization file to be loaded."
|
||||||
("vt420" . "vt200")
|
("vt420" . "vt200")
|
||||||
("alacritty" . "xterm")
|
("alacritty" . "xterm")
|
||||||
("foot" . "xterm")
|
("foot" . "xterm")
|
||||||
("contour" . "xterm"))
|
("contour" . "xterm")
|
||||||
|
("xterm-ghostty" . "ghostty"))
|
||||||
"Alist of terminal type aliases.
|
"Alist of terminal type aliases.
|
||||||
Entries are of the form (TYPE . ALIAS), where both elements are strings.
|
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."
|
This means to treat a terminal of type TYPE as if it were of type ALIAS."
|
||||||
|
|
|
||||||
18
lisp/term/ghostty.el
Normal file
18
lisp/term/ghostty.el
Normal 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
|
||||||
Loading…
Reference in a new issue