summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-10-26 12:57:02 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-10-26 12:57:02 +0200
commitab0058448abc0f51d0165c0278bdd4878a3f4d13 (patch)
treebfb7f05382b68e2689be0ef4a983a7df70a4f3bd /utils.go
parent1312d9dc80d3c43fce59e41ca3798abafd67e5f3 (diff)
Colorbuxfix, MoreMultichoice
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils.go b/utils.go
index c0f80bb..ec0802b 100644
--- a/utils.go
+++ b/utils.go
@@ -43,6 +43,16 @@ func negR() (out string){
return
}
+func line(aslongas string, hidden bool) (out string) {
+ n := utf8.RuneCountInString(aslongas)
+ if hidden {
+ out = strings.Repeat(" ",n)
+ }else{
+ out = strings.Repeat(li,n)
+ }
+ return
+}
+
func sub(text string) (out string) {
out = ssli +text
n := utf8.RuneCountInString(out)