aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-06 17:18:35 +0200
committerjoe <rbo@gmx.us>2025-10-06 17:18:35 +0200
commitd58a1188211d04bf1caef3133f65011da59b7fe2 (patch)
tree4185d2167aaf3aa885fb121fbb7a9ed64dd2a61d
parentup (diff)
downloadhardflip-no-box.tar.gz
hardflip-no-box.tar.bz2
hardflip-no-box.tar.xz
hardflip-no-box.tar.zst
hardflip-no-box.zip
-rw-r--r--Makefile24
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--src/c_defs.go26
-rw-r--r--src/c_exec.go26
-rw-r--r--src/c_fuzz.go26
-rw-r--r--src/c_hardflip.go26
-rw-r--r--src/c_init.go36
-rw-r--r--src/c_ldirs.go26
-rw-r--r--src/c_lhosts.go26
-rw-r--r--src/c_litems.go26
-rw-r--r--src/c_parse.go26
-rw-r--r--src/c_utils.go26
-rw-r--r--src/e_events.go26
-rw-r--r--src/e_keys.go26
-rw-r--r--src/i_help.go26
-rw-r--r--src/i_host.go26
-rw-r--r--src/i_info.go26
-rw-r--r--src/i_insert.go26
-rw-r--r--src/i_ui.go35
20 files changed, 246 insertions, 245 deletions
diff --git a/Makefile b/Makefile
index 02c14a1..f0d8e9c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,18 @@
-# ========================
-# ===== ===============
-# ====== ================
-# ====== ================
-# ====== ==== ==== ==
-# ====== === == = =
-# ====== === = == =
-# = === === = == ====
-# = === === = == = =
-# == ===== ==== ==
-# ========================
+# =====================
+# ==== ===============
+# =====================
+# === === ==== ==
+# ==== == == = =
+# ==== == = == =
+# ==== == = == ====
+# ==== == = == = =
+# = = === ==== ==
+# == ================
+# =====================
#
# hardflip: Makefile
# Tue, 26 Aug 2025 11:35:01 +0200
-# Joe
+# joe <rbo@gmx.us>
#
# GNU Makefile
diff --git a/go.mod b/go.mod
index 2b6c152..a559bc2 100644
--- a/go.mod
+++ b/go.mod
@@ -6,7 +6,7 @@ require (
github.com/gdamore/tcell/v2 v2.9.0
golang.org/x/term v0.34.0
gopkg.in/yaml.v3 v3.0.1
- k8s.io/apimachinery v0.33.4
+ k8s.io/apimachinery v0.34.1
)
require (
diff --git a/go.sum b/go.sum
index 61a75d3..89d0ca4 100644
--- a/go.sum
+++ b/go.sum
@@ -52,5 +52,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-k8s.io/apimachinery v0.33.4 h1:SOf/JW33TP0eppJMkIgQ+L6atlDiP/090oaX0y9pd9s=
-k8s.io/apimachinery v0.33.4/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM=
+k8s.io/apimachinery v0.34.1 h1:dTlxFls/eikpJxmAC7MVE8oOeP1zryV7iRyIjB0gky4=
+k8s.io/apimachinery v0.34.1/go.mod h1:/GwIlEcWuTX9zKIg2mbw0LRFIsXwrfoVxn+ef0X13lw=
diff --git a/src/c_defs.go b/src/c_defs.go
index 42dce0a..375b5a9 100644
--- a/src/c_defs.go
+++ b/src/c_defs.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_defs.go
* Mon May 13 10:27:54 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* constants
*/
diff --git a/src/c_exec.go b/src/c_exec.go
index c6d08dd..7eb66c5 100644
--- a/src/c_exec.go
+++ b/src/c_exec.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_exec.go
* Tue, 26 Aug 2025 19:17:04 +0200
- * Joe
+ * joe <rbo@gmx.us>
*
* exec the command at some point
*/
diff --git a/src/c_fuzz.go b/src/c_fuzz.go
index ffc05b6..8844772 100644
--- a/src/c_fuzz.go
+++ b/src/c_fuzz.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_fuzz.go
* Wed, 27 Aug 2025 13:43:16 +0200
- * Joe
+ * joe <rbo@gmx.us>
*
* search with fzf otherwise shitty search
*/
diff --git a/src/c_hardflip.go b/src/c_hardflip.go
index bc072ed..c50d731 100644
--- a/src/c_hardflip.go
+++ b/src/c_hardflip.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_hardflip.go
* Wed Mar 27 13:48:53 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* the main
*/
diff --git a/src/c_init.go b/src/c_init.go
index 555fb96..e8e15c6 100644
--- a/src/c_init.go
+++ b/src/c_init.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_init.go
* Fri Feb 02 10:09:18 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* init functions
*/
@@ -85,9 +85,9 @@ type HardStyle struct {
// this function recurses into the specified root directory in order to load
// every yaml file into memory
func c_recurse_data_dir(dir, root string, opts HardOpts,
- ldirs *DirsList,
- name string, parent *DirsNode, depth uint16,
- load_err *[]error) {
+ ldirs *DirsList,
+ name string, parent *DirsNode, depth uint16,
+ load_err *[]error) {
files, err := os.ReadDir(root + dir)
if err != nil {
*load_err = append(*load_err, err)
@@ -212,8 +212,8 @@ func c_get_styles(dir string, load_err *[]error) HardStyle {
}
func i_load_data(data_dir string,
- opts HardOpts,
- load_err *[]error) (*DirsList, *ItemsList, []error) {
+ opts HardOpts,
+ load_err *[]error) (*DirsList, *ItemsList, []error) {
ldirs := c_load_data_dir(data_dir, opts, load_err)
litems := c_load_litems(ldirs)
if len(*load_err) == 0 {
diff --git a/src/c_ldirs.go b/src/c_ldirs.go
index 0d73354..c5a5dc4 100644
--- a/src/c_ldirs.go
+++ b/src/c_ldirs.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_ldirs.go
* Thu Jan 11 18:35:31 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* the directories linked list
*/
diff --git a/src/c_lhosts.go b/src/c_lhosts.go
index e2fbd90..c8fcb4f 100644
--- a/src/c_lhosts.go
+++ b/src/c_lhosts.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_lhosts.go
* Wed Apr 24 14:31:44 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* the hosts linked list
*/
diff --git a/src/c_litems.go b/src/c_litems.go
index 7b04880..6a89e39 100644
--- a/src/c_litems.go
+++ b/src/c_litems.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_litems.go
* Mon May 13 12:10:57 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* the dir and hosts linked list
*/
diff --git a/src/c_parse.go b/src/c_parse.go
index 2b5950f..7610c0d 100644
--- a/src/c_parse.go
+++ b/src/c_parse.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_parse.go
* Fri, 15 Dec 2023 10:02:29 +0100
- * Joe
+ * joe <rbo@gmx.us>
*
* parsing of the global data
*/
diff --git a/src/c_utils.go b/src/c_utils.go
index 2333ffd..ba8272a 100644
--- a/src/c_utils.go
+++ b/src/c_utils.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/c_utils.go
* Thu May 16 09:48:25 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* core funcs
*/
diff --git a/src/e_events.go b/src/e_events.go
index 791c219..3ef2a4c 100644
--- a/src/e_events.go
+++ b/src/e_events.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/e_events.go
* Tue, 26 Aug 2025 19:02:24 +0200
- * Joe
+ * joe <rbo@gmx.us>
*
* events in the code
*/
diff --git a/src/e_keys.go b/src/e_keys.go
index b73c656..98d57d2 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/e_keys.go
* Tue, 26 Aug 2025 18:43:37 +0200
- * Joe
+ * joe <rbo@gmx.us>
*
* events in the keys
*/
diff --git a/src/i_help.go b/src/i_help.go
index de0a085..4ba834d 100644
--- a/src/i_help.go
+++ b/src/i_help.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/i_help.go
* Tue May 14 09:38:04 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* helping the user
*/
diff --git a/src/i_host.go b/src/i_host.go
index b06486d..641cc89 100644
--- a/src/i_host.go
+++ b/src/i_host.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/i_host.go
* Tue, 26 Aug 2025 18:38:20 +0200
- * Joe
+ * joe <rbo@gmx.us>
*
* interfacing hosts
*/
diff --git a/src/i_info.go b/src/i_info.go
index c27afe6..cb2fe5b 100644
--- a/src/i_info.go
+++ b/src/i_info.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/i_info.go
* Tue May 07 10:23:39 2024
- * Joe
+ * joe <rbo@gmx.us>
*
* interfacing informations about items
*/
diff --git a/src/i_insert.go b/src/i_insert.go
index 082710b..ccc92ee 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/i_insert.go
* Tue, 26 Aug 2025 18:40:46 +0200
- * Joe
+ * joe <rbo@gmx.us>
*
* insert a new host
*/
diff --git a/src/i_ui.go b/src/i_ui.go
index 57a8a1e..91b9e64 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -1,19 +1,19 @@
/*
- * ========================
- * ===== ===============
- * ====== ================
- * ====== ================
- * ====== ==== ==== ==
- * ====== === == = =
- * ====== === = == =
- * = === === = == ====
- * = === === = == = =
- * == ===== ==== ==
- * ========================
+ * =====================
+ * ==== ===============
+ * =====================
+ * === === ==== ==
+ * ==== == == = =
+ * ==== == = == =
+ * ==== == = == ====
+ * ==== == = == = =
+ * = = === ==== ==
+ * == ================
+ * =====================
*
* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright (c) 2023-2024, Joe
+ * Copyright (c) 2023-2025, joe <rbo@gmx.us>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@
*
* hardflip: src/i_ui.go
* Tue, 26 Aug 2025 18:55:49 +0200
- * Joe
+ * joe <rbo@gmx.us>
*
* interfacing with the user
*/
@@ -56,7 +56,7 @@ import (
"os"
"strconv"
- "github.com/gdamore/tcell/v2"
+ "github.com/nyangkosense/tinybox"
"golang.org/x/term"
)
@@ -666,7 +666,7 @@ func i_draw_match_buff(ui HardUI) {
func i_init_styles(ui *HardUI, styles HardStyle) {
for i := range STYLE_MAX + 1 {
- tmp := tcell.StyleDefault.Background(tcell.ColorReset)
+ // tmp := tcell.StyleDefault.Background(tcell.ColorReset)
curr_color := "default"
switch i {
case DEF_STYLE:
@@ -690,7 +690,7 @@ func i_init_styles(ui *HardUI, styles HardStyle) {
default:
curr_color = "default"
}
- switch curr_color {
+ /* switch curr_color {
case COLORS[COLOR_DEFAULT]:
ui.style[i] = tmp.Foreground(tcell.ColorReset)
case COLORS[COLOR_BLACK]:
@@ -731,7 +731,7 @@ func i_init_styles(ui *HardUI, styles HardStyle) {
ui.style[i] = tmp.Foreground(tcell.ColorGray).Bold(true)
default:
ui.style[i] = tmp.Foreground(tcell.ColorReset)
- }
+ } */
}
}
@@ -741,6 +741,7 @@ func i_ui(data *HardData) {
var err error
data.ui.s, err = tcell.NewScreen()
+ data.ui.s, err = ;
if err != nil {
c_die("view", err)
}