aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-05 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-05 20:20:20 +0200
commitc2798f2d40c428ac4214cb1b3b33cee485adfe30 (patch)
tree99ac2c537eb39541690f4d9c4d127dc85e24ecca /src
parentin progress (diff)
downloadhardflip-c2798f2d40c428ac4214cb1b3b33cee485adfe30.tar.gz
hardflip-c2798f2d40c428ac4214cb1b3b33cee485adfe30.tar.bz2
hardflip-c2798f2d40c428ac4214cb1b3b33cee485adfe30.tar.xz
hardflip-c2798f2d40c428ac4214cb1b3b33cee485adfe30.tar.zst
hardflip-c2798f2d40c428ac4214cb1b3b33cee485adfe30.zip
i cant find a way
Diffstat (limited to '')
-rw-r--r--src/i_insert.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/i_insert.go b/src/i_insert.go
index d012c71..f21fdd9 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/i_insert.go
- * Fri Apr 05 10:42:36 2024
+ * Fri Apr 05 14:19:38 2024
* Joe
*
* insert a new host
@@ -53,6 +53,7 @@ package main
import (
"errors"
+ // "fmt"
"os"
"strconv"
@@ -140,6 +141,8 @@ func i_draw_ok_butt(ui HardUI, line int, id, selected int) {
(ui.dim[W] / 2) + (butt_size / 2), line, style, buff)
}
+var start_line int
+
func i_draw_insert_panel(ui HardUI, in *HostNode) {
if len(in.Name) == 0 {
return
@@ -165,6 +168,14 @@ func i_draw_insert_panel(ui HardUI, in *HostNode) {
}
if win.T + end_line >= win.B {
ui.s.SetContent(ui.dim[W] / 2, win.B, '▼', nil, ui.style[BOX_STYLE])
+ // ui.s.Fini()
+ // fmt.Println("end_line ", end_line)
+ // fmt.Println("win.T ", win.T)
+ // fmt.Println("win.T+end", win.T + end_line)
+ // fmt.Println("win.B ", win.B)
+ // fmt.Println("insert_sel ", ui.insert_sel)
+ // fmt.Println("insert_max ", ui.insert_sel_max)
+ // os.Exit(0)
// TODO: here
}
}