feat(tty): add support for TTY child frames in 31+

This commit is contained in:
Henrik Lissner
2025-05-16 08:53:00 +02:00
parent 78f55f3a45
commit e25e684014

View File

@ -18,6 +18,11 @@
;; Enable the mouse in terminal Emacs
(add-hook 'tty-setup-hook #'xterm-mouse-mode)
;; Support for child frames in terminal frames was added in 31. Enable it, if it
;; is available.
(when (featurep 'tty-child-frames)
(add-hook 'tty-setup-hoom #'tty-tip-mode))
;; Windows terminals don't support what I'm about to do, but best not to wrap
;; this in an OS check, in case you're using WSL or Cygwin, which *might*
;; support it.