divs and paginators

This commit is contained in:
2024-09-25 12:29:03 +02:00
parent 905a77f8b0
commit 8f375efe41
7 changed files with 210 additions and 80 deletions
+23
View File
@@ -1,6 +1,7 @@
package osui
import (
"fmt"
"os"
"os/exec"
"reflect"
@@ -117,6 +118,28 @@ func SetDefaults(p interface{}) interface{} {
return p
}
func ShowCursor() {
fmt.Print("\033[?25h")
}
func HideCursor() {
fmt.Print("\033[?25l")
}
func LogicValue(b bool, _if, _else string) string {
if b {
return _if
}
return _else
}
func LogicValueInt(b bool, _if, _else int) int {
if b {
return _if
}
return _else
}
type Key_ = string
type key struct {