diff options
author | Joe <rbo@gmx.us> | 2023-12-27 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-27 20:20:20 +0100 |
commit | 0fcae013d37048406ebab70e9c9b6cfd124dcf93 (patch) | |
tree | 099977e75d6d30aec37526bf58e5cc9d7029f6e0 | |
parent | fuck (diff) | |
download | hardflip-0fcae013d37048406ebab70e9c9b6cfd124dcf93.tar.gz hardflip-0fcae013d37048406ebab70e9c9b6cfd124dcf93.tar.bz2 hardflip-0fcae013d37048406ebab70e9c9b6cfd124dcf93.tar.xz hardflip-0fcae013d37048406ebab70e9c9b6cfd124dcf93.tar.zst hardflip-0fcae013d37048406ebab70e9c9b6cfd124dcf93.zip |
def
-rw-r--r-- | c_defs.go | 5 | ||||
-rw-r--r-- | i_ui.go | 15 |
2 files changed, 12 insertions, 8 deletions
@@ -56,6 +56,7 @@ const ( [x](e)dit - (D)elete - [x](s)earch - +[x](m)kdir - (c-r) reload - [x](?) help` DATA_DIR_NAME = "hardflip" @@ -64,6 +65,6 @@ const ( ) var ( -HOST_ICONS = [2]string{" ", " "} -DIRS_ICONS = [2]string{" ", " "} + HOST_ICONS = [2]string{" ", " "} + DIRS_ICONS = [2]string{" ", " "} ) @@ -209,6 +209,12 @@ func i_draw_delete_box(ui HardUI, host *HostNode) { // ui.def_style, "o") } +func i_host_panel_dirs() { +} + +func i_host_panel_host() { +} + func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) { i_draw_box(ui.s, 0, 0, ui.dim[W] / 3, ui.dim[H] - 2, @@ -253,11 +259,7 @@ func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) { } text := "" for i := 0; i < int(dirs.Depth) - 2; i++ { - if host.next == nil { - text += " " - } else { - text += " " - } + text += " " } if opts.Icon == true { text += HOST_ICONS[int(host.Protocol)] @@ -299,7 +301,8 @@ func i_info_panel(ui HardUI, lhost *HostList) { ui.dim[W] - 1, ui.dim[H] - 2, " Infos ", false) ui.s.SetContent(ui.dim[W] / 3, 0, tcell.RuneTTee, nil, ui.def_style) - ui.s.SetContent(ui.dim[W] / 3, ui.dim[H] - 2, tcell.RuneBTee, nil, ui.def_style) + ui.s.SetContent(ui.dim[W] / 3, ui.dim[H] - 2, + tcell.RuneBTee, nil, ui.def_style) if lhost.head == nil { return } |