aboutsummaryrefslogtreecommitdiffstats
path: root/i_info.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-19 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-19 20:20:20 +0100
commit06a41eb85b9db31c6ca6502417c02e726d724578 (patch)
tree609199fb9c34bb967bb5ab0dd6aa22e6e707636f /i_info.go
parentless retarded limits (diff)
downloadhardflip-06a41eb85b9db31c6ca6502417c02e726d724578.tar.gz
hardflip-06a41eb85b9db31c6ca6502417c02e726d724578.tar.bz2
hardflip-06a41eb85b9db31c6ca6502417c02e726d724578.tar.xz
hardflip-06a41eb85b9db31c6ca6502417c02e726d724578.tar.zst
hardflip-06a41eb85b9db31c6ca6502417c02e726d724578.zip
msg mode
Diffstat (limited to 'i_info.go')
-rw-r--r--i_info.go82
1 files changed, 41 insertions, 41 deletions
diff --git a/i_info.go b/i_info.go
index 1b96ec3..8b5ccd6 100644
--- a/i_info.go
+++ b/i_info.go
@@ -64,28 +64,28 @@ func i_info_panel_dirs(ui HardUI, dir *DirsNode) {
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Name: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, dir.Name)
if line += 1; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Type: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, "Directory")
if line += 2; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Path: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, dir.path())
}
@@ -97,19 +97,19 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
}
// name, type
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Name: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, host.Name)
if line += 1; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Type: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, host_type)
if line += 2; line > ui.dim[H] - 3 {
return
@@ -119,19 +119,19 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
}
// host, port
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Host: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, host.Host)
if line += 1; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Port: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, strconv.Itoa(int(host.Port)))
if line += 1; line > ui.dim[H] - 3 {
return
@@ -140,10 +140,10 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
if host.Protocol == 1 {
if len(host.Domain) > 0 {
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Domain: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 12, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 11, line, ui.dim[W] - 2, line,
ui.def_style, host.Domain)
if line += 1; line > ui.dim[H] - 3 {
return
@@ -155,20 +155,20 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
}
// user infos
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "User: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, host.User)
if line += 1; line > ui.dim[H] - 3 {
return
}
if len(host.Pass) > 0 {
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Pass: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, "***")
if line += 1; line > ui.dim[H] - 3 {
return
@@ -176,10 +176,10 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
}
if host.Protocol == 0 && len(host.Priv) > 0 {
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Privkey: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 13, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 12, line, ui.dim[W] - 2, line,
ui.def_style, host.Priv)
if line += 1; line > ui.dim[H] - 3 {
return
@@ -191,44 +191,44 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
// jump
if host.Protocol == 0 && len(host.Jump) > 0 {
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Jump settings: ")
if line += 1; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 5, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
ui.title_style, "Host: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 11, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
ui.def_style, host.Jump)
if line += 1; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 5, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
ui.title_style, "Port: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 11, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
ui.def_style, strconv.Itoa(int(host.JumpPort)))
if line += 1; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 5, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
ui.title_style, "User: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 11, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
ui.def_style, host.JumpUser)
if line += 1; line > ui.dim[H] - 3 {
return
}
if len(host.JumpPass) > 0 {
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 5, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
ui.title_style, "Pass: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 11, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
ui.def_style, "***")
if line += 1; line > ui.dim[H] - 3 {
return
@@ -236,10 +236,10 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
}
if host.Protocol == 0 && len(host.JumpPriv) > 0 {
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 5, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
ui.title_style, "Privkey: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 14, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 13, line, ui.dim[W] - 2, line,
ui.def_style, host.JumpPriv)
if line += 1; line > ui.dim[H] - 3 {
return
@@ -253,10 +253,10 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
if host.Protocol == 1 {
qual := [3]string{"Low", "Medium", "High"}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Screen size: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 17, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 16, line, ui.dim[W] - 2, line,
ui.def_style,
strconv.Itoa(int(host.Width)) + "x" +
strconv.Itoa(int(host.Height)))
@@ -264,19 +264,19 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Dynamic window: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 20, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 19, line, ui.dim[W] - 2, line,
ui.def_style, strconv.FormatBool(host.Dynamic))
if line += 1; line > ui.dim[H] - 3 {
return
}
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Quality: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 13, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 12, line, ui.dim[W] - 2, line,
ui.def_style, qual[host.Quality])
line += 1
if line += 1; line > ui.dim[H] - 3 {
@@ -286,10 +286,10 @@ func i_info_panel_host(ui HardUI, host *HostNode) {
// note
if len(host.Note) > 0 {
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 4, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 3, line, ui.dim[W] - 2, line,
ui.title_style, "Note: ")
i_draw_text(ui.s,
- (ui.dim[W] / 3) + 10, line, ui.dim[W] - 2, line,
+ (ui.dim[W] / 3) + 9, line, ui.dim[W] - 2, line,
ui.def_style, host.Note)
if line += 1; line > ui.dim[H] - 3 {
return