Logo
Explore Help
Register Sign In
kairos/luet
1
0
Fork 0
You've already forked luet
mirror of https://github.com/mudler/luet.git synced 2025-08-31 06:35:12 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
ebbb3aad270defd2bc1a251f0f9a1d8e9c079b88
luet/pkg/helpers/terminal/terminal_check_general.go

18 lines
214 B
Go
Raw Normal View History

Massive UX rewrite - Ditch multiple libraries for progressbar, spinner, colors and replace with pterm - Detect when running on terminal and disable automatically spinner - Add support for multiple progress bars - Huge rewrite of the configuration part. No more crazy stuff with viper CLI commands now correctly overrides default config file as expected - Limit banner to be displayed on relevant parts Fixes #211 Fixes #105 Fixes #247 Fixes #233
2021-10-19 22:26:23 +02:00
// +build !windows,!nacl,!plan9
package terminal
import (
"io"
"os"
)
func IsTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return isTerminal(int(v.Fd()))
default:
return false
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 994ms Template: 88ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API