From 251b5d8f9f601cf79f50e1d202a8576f7bae9adc Mon Sep 17 00:00:00 2001 From: uprightbass360 Date: Wed, 26 Nov 2025 15:37:41 -0500 Subject: [PATCH] update port display for clarity --- scripts/go/statusdash.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/go/statusdash.go b/scripts/go/statusdash.go index 7fa42e1..a498434 100644 --- a/scripts/go/statusdash.go +++ b/scripts/go/statusdash.go @@ -263,9 +263,9 @@ func buildPortsTable(s *Snapshot) *TableNoCol { table := NewTableNoCol() rows := [][]string{{"Port", "Number", "Reachable"}} for _, p := range s.Ports { - state := "down" + state := "Closed" if p.Reachable { - state = "up" + state = "Open" } rows = append(rows, []string{p.Name, p.Port, state}) } @@ -413,10 +413,10 @@ func renderSnapshot(s *Snapshot, selectedModule int) (*widgets.List, *ui.Grid) { if portsTable.RowStyles == nil { portsTable.RowStyles = make(map[int]ui.Style) } - if portsTable.Rows[i][2] == "up" { + if portsTable.Rows[i][2] == "Open" { portsTable.RowStyles[i] = ui.NewStyle(ui.ColorGreen) } else { - portsTable.RowStyles[i] = ui.NewStyle(ui.ColorRed) + portsTable.RowStyles[i] = ui.NewStyle(ui.ColorYellow) } } modulesList := buildModulesList(s)