From e25e68401479cb41301b2c62bbff84abc85d7b62 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 16 May 2025 08:53:00 +0200 Subject: [PATCH] feat(tty): add support for TTY child frames in 31+ --- modules/os/tty/config.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/os/tty/config.el b/modules/os/tty/config.el index a19261416..0dfe12731 100644 --- a/modules/os/tty/config.el +++ b/modules/os/tty/config.el @@ -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.