From 6d594848e052b1e627479ee1068e147a6aaf1c70 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 7 Jul 2021 22:36:27 +0300 Subject: [PATCH] Fix tty menus on monochrome displays * lisp/faces.el (tty-menu-selected-face): Make sure the selected menu item stands out even without colors. --- lisp/faces.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/faces.el b/lisp/faces.el index 308da9367d5..9c818d51366 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -2927,9 +2927,12 @@ It is used for characters of no fonts too." :group 'basic-faces) (defface tty-menu-selected-face - '((t :background "red")) + '((((class color)) + :background "red") + (t :inverse-video t)) "Face for displaying the currently selected item in TTY menus." - :group 'basic-faces) + :group 'basic-faces + :version "28.1") (defgroup paren-showing-faces nil "Faces used to highlight paren matches." -- 2.39.2