aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_info.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-02-20 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-02-20 20:20:20 +0100
commitbb0b6a312f07680514c419b9c7c6d5b3a47a0393 (patch)
tree76add444eb2bfa17fe0781e05599f322882ded82 /src/i_info.go
parenttest (diff)
downloadhardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.gz
hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.bz2
hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.xz
hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.tar.zst
hardflip-bb0b6a312f07680514c419b9c7c6d5b3a47a0393.zip
rdp_file
Diffstat (limited to 'src/i_info.go')
-rw-r--r--src/i_info.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/i_info.go b/src/i_info.go
index 85929b4..14eb9b0 100644
--- a/src/i_info.go
+++ b/src/i_info.go
@@ -224,8 +224,18 @@ func i_info_rdp(ui HardUI, host *HostNode, line int) int {
i_draw_text(ui.s,
(ui.dim[W] / 3) + 11, line, ui.dim[W] - 2, line,
ui.style[STYLE_DEF], host.Domain)
+ if line += 1; line > ui.dim[H] - 3 { return line }
+ }
+ if line += 1; line > ui.dim[H] - 3 { return line }
+ if len(host.RDPFile) > 0 {
+ i_draw_text(ui.s,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
+ ui.style[STYLE_TITLE], "RDP File: ")
+ i_draw_text(ui.s,
+ (ui.dim[W] / 3) + 13, line, ui.dim[W] - 2, line,
+ ui.style[STYLE_DEF], host.RDPFile)
+ if line += 2; line > ui.dim[H] - 3 { return line }
}
- if line += 2; line > ui.dim[H] - 3 { return line }
// user infos
i_draw_text(ui.s,
(ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,