Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
343 B
Go
Raw Permalink Normal View History

// Copyright IBM Corp. 2020, 2026
2023-02-02 17:15:17 -08:00
// SPDX-License-Identifier: BUSL-1.1
package base
import (
"os"
"github.com/mitchellh/cli"
"golang.org/x/term"
)
2020-08-10 17:15:02 -04:00
type BoundaryUI struct {
cli.Ui
Format string
}
var TermWidth uint = 80
func init() {
width, _, err := term.GetSize(int(os.Stdin.Fd()))
if err == nil {
TermWidth = uint(width)
}
}