From 627600b8e323756473de2531ccff0d7040cb7763 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Mon, 15 Jun 2026 01:15:21 +0800 Subject: [PATCH] hkml_view: highlight current selected line On some terminals, the cursor is dimmed so it's hard to tell which line is the selected line. highlight it by reverse the backgroud color. Signed-off-by: Kairui Song --- src/hkml_view.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hkml_view.py b/src/hkml_view.py index a1494622..03937ef3 100644 --- a/src/hkml_view.py +++ b/src/hkml_view.py @@ -223,6 +223,9 @@ def __draw(self): elif line_idx == highlight_row: self.screen.addstr(row, 0, line, highlight_color | color_attrib) + elif line_idx == self.focus_row: + self.screen.addstr(row, 0, line, + color | color_attrib | self.effect_reverse) else: self.screen.addstr(row, 0, line, color | color_attrib)