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 | 5dee2af78434191a27987acfb02902a11f81067c (patch) | |
| tree | 43e9877f72f3a575c68c3e6648ab4928ecf511cb /linuxstatus/draw.go | |
| parent | ba3d5a3cb24429692a1d799e73a9d53cc798212e (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 =") |
