From e251e285984e102cc224365634e3a20c29782812 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sun, 2 Jun 2024 21:47:51 +0200 Subject: [PATCH] [inspect] add draw entry function --- inspect.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/inspect.lua b/inspect.lua index 474c6dd..edb8fb0 100644 --- a/inspect.lua +++ b/inspect.lua @@ -34,6 +34,13 @@ local function estimatedHeight() return #keys end +local function drawLine(termlike, line) + termlike.setBackgroundColor(colors.black) + termlike.setTextColor(colors.white) + termlike.write(line) +end +listview.setDrawEntryFunc(drawLine) + return { name="inspect",