From ab0058448abc0f51d0165c0278bdd4878a3f4d13 Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Fri, 26 Oct 2018 12:57:02 +0200 Subject: Colorbuxfix, MoreMultichoice --- utils.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'utils.go') 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) -- cgit v1.2.3