diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-23 13:47:25 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-23 13:47:25 +0200 |
| commit | b3e5db93f7b59c7b80706ae30b505cb6b7945ec3 (patch) | |
| tree | f42c52132b49b58540ef78be68cf0bef7479cab5 /internal/cli/termwidth_other.go | |
| parent | cb1f49117d15b9690b46f344c0d6777e558b9021 (diff) | |
| download | lectio-b3e5db93f7b59c7b80706ae30b505cb6b7945ec3.tar.gz lectio-b3e5db93f7b59c7b80706ae30b505cb6b7945ec3.zip | |
cli: subcommand dispatch
Diffstat (limited to 'internal/cli/termwidth_other.go')
| -rw-r--r-- | internal/cli/termwidth_other.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/cli/termwidth_other.go b/internal/cli/termwidth_other.go new file mode 100644 index 0000000..a44fc70 --- /dev/null +++ b/internal/cli/termwidth_other.go @@ -0,0 +1,11 @@ +//go:build !unix + +package cli + +import "os" + +// ttyWidth has no portable implementation outside unix; callers fall back +// to the $COLUMNS env var or a sane default. +func ttyWidth(f *os.File) int { + return 0 +} |
