textcolsafe

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Safe column printing to avoid calling external `stty` on Windows. Reference: https://github.com/blacknon/lssh/issues/146

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintColumns

func PrintColumns(w io.Writer, strs []string, margin int, padding int)

PrintColumns prints items into columns safely without relying on external `stty`. - w: output writer - strs: items to print - margin: spaces between columns - padding: left padding to subtract from terminal width (e.g., prompt length)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL