diff options
Diffstat (limited to 'termSize.go')
| -rw-r--r-- | termSize.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/termSize.go b/termSize.go index 8595c5e..97a402a 100644 --- a/termSize.go +++ b/termSize.go @@ -1,10 +1,9 @@ package cobol import ( + "fmt" "strings" "unicode" - - "go.wit.com/log" ) var WIDTH int = 120 @@ -22,7 +21,7 @@ func getTerminalWidth() (int, bool) { // like the perl Chomp but with the terminal width func TerminalChomp(cut string) string { i, _ := getTerminalWidth() - // log.Info("cobol.TerminalCut() at ", i) + // fmt.Info("cobol.TerminalCut() at ", i) // TrimRightFunc removes all trailing runes r from the string s that satisfy f(r). // unicode.IsSpace reports whether the rune is a space character. @@ -31,6 +30,6 @@ func TerminalChomp(cut string) string { if i >= len(cut) { return cut } else { - return log.Sprintf("%s", cut[0:i]) + return fmt.Sprintf("%s", cut[0:i]) } } |
