diff options
author | Joe <rbo@gmx.us> | 2024-02-05 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-02-05 20:20:20 +0100 |
commit | c8364d6dcec896b7b584b173a0dd46eb61d03f01 (patch) | |
tree | 67f4fe2cd7137ed464e28a9b0434eac8cf321b2d /src/i_info.go | |
parent | go (diff) | |
download | hardflip-c8364d6dcec896b7b584b173a0dd46eb61d03f01.tar.gz hardflip-c8364d6dcec896b7b584b173a0dd46eb61d03f01.tar.bz2 hardflip-c8364d6dcec896b7b584b173a0dd46eb61d03f01.tar.xz hardflip-c8364d6dcec896b7b584b173a0dd46eb61d03f01.tar.zst hardflip-c8364d6dcec896b7b584b173a0dd46eb61d03f01.zip |
ux design
Diffstat (limited to 'src/i_info.go')
-rw-r--r-- | src/i_info.go | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/i_info.go b/src/i_info.go index 4284032..1620e05 100644 --- a/src/i_info.go +++ b/src/i_info.go @@ -311,9 +311,20 @@ func i_info_cmd(ui HardUI, host *HostNode, line int) int { (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line, ui.style[STYLE_TITLE], "Silent: ") i_draw_text(ui.s, - (ui.dim[W] / 3) + 12, line, ui.dim[W] - 2, line, - ui.style[STYLE_DEF], host.Silent) - // TODO: here + (ui.dim[W] / 3) + 11, line, ui.dim[W] - 2, line, + ui.style[STYLE_DEF], strconv.FormatBool(host.Silent)) + if line += 1; line > ui.dim[H] - 3 { return line } + i_draw_text(ui.s, + (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line, + ui.style[STYLE_TITLE], "Shell: ") + str := "" + for _, s := range host.Shell { + str += s + " " + } + i_draw_text(ui.s, + (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line, + ui.style[STYLE_DEF], str) + if line += 2; line > ui.dim[H] - 3 { return line } return line } @@ -324,9 +335,7 @@ func i_info_openstack(ui HardUI, host *HostNode, line int) int { i_draw_text(ui.s, (ui.dim[W] / 3) + 13, line, ui.dim[W] - 2, line, ui.style[STYLE_DEF], host.Host) - if line += 1; line > ui.dim[H] - 3 { - return line - } + if line += 1; line > ui.dim[H] - 3 { return line } return line } |