CrabScout. The best software around.
Search

go-isatty

Check whether a file descriptor is connected to a terminal.

mattn · System tools

GitHub projectOpen source Open on GitHub

How to try it

In a new Go module, add github.com/mattn/go-isatty at v0.0.24. Compare a file in the fixture with a terminal expectation.

What we tested

v0.0.24. Compare a file in the fixture with a terminal expectation. Identified the synthetic open file as a nonterminal descriptor.

Reviews

Rate this repo

More to explore

  • LSD directory listingList local folders and files with optional tree, color and icon views.GitHub projectOpen source
  • treShow a filesystem directory as a concise text tree.GitHub projectOpen source
  • chezmoiKeep editable source copies of personal settings and apply them across machines.GitHub projectOpen source

Share

What the labels mean

Save to your library