diff options
Diffstat (limited to 'i_info.go')
-rw-r--r-- | i_info.go | 82 |
1 files changed, 41 insertions, 41 deletions
@@ -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 |