mirror of
https://codeberg.org/scip/tablizer.git
synced 2026-02-04 10:20:59 +01:00
refactored and un-go-criticed
This commit is contained in:
@@ -216,6 +216,7 @@ func (conf *Config) DetermineColormode() {
|
||||
// Return true if current terminal is interactive
|
||||
func isTerminal(f *os.File) bool {
|
||||
o, _ := f.Stat()
|
||||
|
||||
return (o.Mode() & os.ModeCharDevice) == os.ModeCharDevice
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user