[inspect] add draw entry function
This commit is contained in:
parent
e650a16f0e
commit
e251e28598
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue