summaryrefslogtreecommitdiff
path: root/termSize.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 07:52:32 -0500
committerJeff Carr <[email protected]>2025-10-14 07:52:32 -0500
commitbf5891a4c983fd4300ed57d1e42a0e0dca72fea4 (patch)
tree4bfbad9b5f08e9c33f01c903e2792c23b68a9714 /termSize.go
parent92e9b066f424c8e8055c01365bbd5e45e3c4f1b4 (diff)
no using log herev0.0.22
Diffstat (limited to 'termSize.go')
-rw-r--r--termSize.go7
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])
}
}