diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 14:57:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 14:57:51 -0600 |
| commit | b8991ccf586159044c6a17b87654f10860fd22cb (patch) | |
| tree | 4543581b5d1c82b8eeb81752e3c63e78321fd547 /linuxstatus/draw.go | |
| parent | 73811178b515e35b5f13515a2c2130b8a300a870 (diff) | |
old window is nearly deprecated
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/draw.go')
| -rw-r--r-- | linuxstatus/draw.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linuxstatus/draw.go b/linuxstatus/draw.go index 6680f2d..5d28347 100644 --- a/linuxstatus/draw.go +++ b/linuxstatus/draw.go @@ -9,15 +9,17 @@ import ( // it's assumed you are always passing in a box func draw(ls *LinuxStatus) { if ! ls.Ready() {return} - ls.group = ls.window.Box().NewGroup("Real Stuff") + ls.group = ls.window.Box().NewGroup("What Linux Says It Is") ls.grid = ls.group.NewGrid("gridnuts", 2, 2) ls.grid.SetNext(1,1) + ls.fqdn = gadgets.NewOneLiner(ls.grid, "hostname -f") ls.hostshort = gadgets.NewOneLiner(ls.grid, "hostname -s") ls.domainname = gadgets.NewOneLiner(ls.grid, "domain name") - ls.NSrr = gadgets.NewOneLiner(ls.grid, "NS records =") + ls.resolver = gadgets.NewOneLiner(ls.grid, "nameservers =") + ls.resolver.Set("TODO") ls.uid = gadgets.NewOneLiner(ls.grid, "UID =") ls.IPv4 = gadgets.NewOneLiner(ls.grid, "Current IPv4 =") ls.IPv6 = gadgets.NewOneLiner(ls.grid, "Current IPv6 =") |
