From 26c94eb3db62ec6eebbf8d22c11afe691d9520c4 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Sun, 13 Sep 2026 02:31:32 +0200 Subject: krino: release 0.0.1 — man pages, install, examples, cross and release, README, changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also: undo removes the directories its run created; a hardlink is never a duplicate of its own other name; a flag written before "undo" is honoured; --version prints no leading v. Duplicate conditions with different scopes not sharing an original is documented as a known limitation. --- internal/tui/tui.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/tui/tui.go') diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 96bb728..c9f1241 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -36,9 +36,9 @@ func Colour(w io.Writer) bool { return !noColour } -// Height is the terminal's row count, 0 when it is not a terminal or the +// height is the terminal's row count, 0 when it is not a terminal or the // size cannot be read. -func Height(w io.Writer) int { +func height(w io.Writer) int { f, ok := w.(*os.File) if !ok || !isTerminal(int(f.Fd())) { return 0 @@ -73,7 +73,7 @@ func Page(w io.Writer, text string) error { // the terminal the pager would inherit, not the writer text is otherwise // sent to. func fitsWithoutPaging(text string) bool { - h := Height(os.Stdout) + h := height(os.Stdout) if h <= 0 { return true } -- cgit v1.3