diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-26 12:57:02 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-10-26 12:57:02 +0200 |
| commit | ab0058448abc0f51d0165c0278bdd4878a3f4d13 (patch) | |
| tree | bfb7f05382b68e2689be0ef4a983a7df70a4f3bd /utils.go | |
| parent | 1312d9dc80d3c43fce59e41ca3798abafd67e5f3 (diff) | |
Colorbuxfix, MoreMultichoice
Diffstat (limited to 'utils.go')
| -rw-r--r-- | utils.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |
