From 6f5518ea58498af9cf86b8fafbdf1ef4d0997dcc Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Tue, 22 Oct 2024 12:38:12 +0200 Subject: Detect tty child frames See https://lists.gnu.org/archive/html/emacs-devel/2024-10/msg00491.html Many thanks to @gerd-moellmann! --- corfu.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/corfu.el b/corfu.el index c465534..223857b 100644 --- a/corfu.el +++ b/corfu.el @@ -1062,7 +1062,9 @@ A scroll bar is displayed from LO to LO+BAR." (cl-defgeneric corfu--popup-support-p () "Return non-nil if child frames are supported." - (display-graphic-p)) + (or (display-graphic-p) + ;; Upcoming feature: Gerd Möllmann's child frame support on TTY. + (featurep 'tty-child-frames))) (cl-defgeneric corfu--insert (status) "Insert current candidate, exit with STATUS if non-nil." -- cgit v1.0