minor changes

This commit is contained in:
2025-12-29 21:05:43 -05:00
parent 33a29d48d2
commit 7630898bc4
4 changed files with 59 additions and 10 deletions

View File

@ -139,7 +139,7 @@ function display.selectionTabs()
term.redirect(oldterm)
end
function display.showIncoming(addressString, allowed, reason)
function display.showIncoming(addressName, addressString, allowed, reason)
mon.setBackgroundColor(colors.black)
mon.clear()
@ -159,9 +159,19 @@ function display.showIncoming(addressString, allowed, reason)
mon.setCursorPos(1, 6)
mon.setBackgroundColor(colors.black)
mon.write("Address:")
mon.setCursorPos(1, 7)
mon.write(addressString)
-- Show name if found in address book
if addressName then
mon.write("Name: " .. addressName)
mon.setCursorPos(1, 7)
mon.write("Address:")
mon.setCursorPos(1, 8)
mon.write(addressString)
else
mon.write("Address:")
mon.setCursorPos(1, 7)
mon.write(addressString)
end
end
function display.showEntity(entityType, entityName, allowed)