diff options
| author | joe <rbo@gmx.us> | 2025-10-06 17:18:35 +0200 |
|---|---|---|
| committer | joe <rbo@gmx.us> | 2025-10-06 17:18:35 +0200 |
| commit | d58a1188211d04bf1caef3133f65011da59b7fe2 (patch) | |
| tree | 4185d2167aaf3aa885fb121fbb7a9ed64dd2a61d /src | |
| parent | up (diff) | |
| download | hardflip-no-box.tar.gz hardflip-no-box.tar.bz2 hardflip-no-box.tar.xz hardflip-no-box.tar.zst hardflip-no-box.zip | |
upno-box
Diffstat (limited to 'src')
| -rw-r--r-- | src/c_defs.go | 26 | ||||
| -rw-r--r-- | src/c_exec.go | 26 | ||||
| -rw-r--r-- | src/c_fuzz.go | 26 | ||||
| -rw-r--r-- | src/c_hardflip.go | 26 | ||||
| -rw-r--r-- | src/c_init.go | 36 | ||||
| -rw-r--r-- | src/c_ldirs.go | 26 | ||||
| -rw-r--r-- | src/c_lhosts.go | 26 | ||||
| -rw-r--r-- | src/c_litems.go | 26 | ||||
| -rw-r--r-- | src/c_parse.go | 26 | ||||
| -rw-r--r-- | src/c_utils.go | 26 | ||||
| -rw-r--r-- | src/e_events.go | 26 | ||||
| -rw-r--r-- | src/e_keys.go | 26 | ||||
| -rw-r--r-- | src/i_help.go | 26 | ||||
| -rw-r--r-- | src/i_host.go | 26 | ||||
| -rw-r--r-- | src/i_info.go | 26 | ||||
| -rw-r--r-- | src/i_insert.go | 26 | ||||
| -rw-r--r-- | src/i_ui.go | 35 |
17 files changed, 231 insertions, 230 deletions
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) } |
