diff options
author | Joe <rbo@gmx.us> | 2024-01-04 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-04 20:20:20 +0100 |
commit | da6ebd7e410b6c4564d8eba79f88a1d67aabe97f (patch) | |
tree | d45053bc11ba3426278602a7632e644ba3eff0eb | |
parent | nothing's great retard boy (diff) | |
download | hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.gz hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.bz2 hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.xz hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.tar.zst hardflip-da6ebd7e410b6c4564d8eba79f88a1d67aabe97f.zip |
tryna make it work
Diffstat (limited to '')
-rw-r--r-- | c_hardflip.go | 50 | ||||
-rw-r--r-- | i_ui.go | 2 |
2 files changed, 27 insertions, 25 deletions
diff --git a/c_hardflip.go b/c_hardflip.go index 4364da8..c2270d8 100644 --- a/c_hardflip.go +++ b/c_hardflip.go @@ -62,9 +62,9 @@ type HardData struct { data_dir string } -type HardPtr interface { - is_dir() bool -} +// type HardPtr interface { +// is_dir() bool +// } func main() { data_dir := c_get_data_dir() @@ -78,27 +78,29 @@ func main() { data_dir, } - for sel := ldirs.head; sel != nil ; sel = sel.next { - spaces := "" - for i := 0; i < int(sel.Depth - 1) * 2; i++ { - spaces += " " - } - if sel.is_dir() == true { - fmt.Print(spaces, "DIR ", sel.ID, " ") - } - fmt.Println(sel.Name) - for sel := sel.lhost.head; sel != nil; sel = sel.next { - spaces := "" - for i := 0; i < int(sel.Parent.Depth - 1) * 2; i++ { - spaces += " " - } - spaces += " " - if sel.is_dir() == false { - fmt.Print(spaces, "HOST ", sel.ID, " ") - } - fmt.Println(sel.Name) - } - } + + // var ptr HardPtr + // for ptr = ldirs.head; ptr != nil ; ptr = ptr.next { + // spaces := "" + // for i := 0; i < int(ptr.Depth - 1) * 2; i++ { + // spaces += " " + // } + // if ptr.is_dir() == true { + // fmt.Print(spaces, "DIR ", ptr.ID, " ") + // } + // fmt.Println(ptr.Name) + // for ptr = ptr.lhost.head; ptr != nil; ptr = ptr.next { + // spaces := "" + // for i := 0; i < int(ptr.Parent.Depth - 1) * 2; i++ { + // spaces += " " + // } + // spaces += " " + // if ptr.is_dir() == false { + // fmt.Print(spaces, "HOST ", ptr.ID, " ") + // } + // fmt.Println(ptr.Name) + // } + // } // for dir := ldirs.head; dir != nil ; dir = dir.next { // for host := dir.lhost.head; host != nil; host = host.next { // fmt.Println(host.ID, host.Name, "HOST") @@ -284,7 +284,7 @@ func i_host_panel_host(ui HardUI, opts HardOpts, } func i_host_panel(ui HardUI, opts HardOpts, ldirs *DirsList) { - // TODO: litems instead of lhosts + // TODO: this must work i_draw_box(ui.s, 0, 0, ui.dim[W] / 3, ui.dim[H] - 2, " Hosts ", false) |