 ea182aec8a
			
		
	
	ea182aec8a
	
	
	
		
			
			full diff: https://github.com/sirupsen/logrus/compare/v1.4.1...v1.5.0 - Ability to DisableHTMLEscape when using the JSON formatter - Support/fixes for go 1.14 - Many many bugfixes Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			12 lines
		
	
	
		
			224 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			224 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package logrus
 | |
| 
 | |
| import (
 | |
| 	"golang.org/x/sys/unix"
 | |
| )
 | |
| 
 | |
| // IsTerminal returns true if the given file descriptor is a terminal.
 | |
| func isTerminal(fd int) bool {
 | |
| 	_, err := unix.IoctlGetTermio(fd, unix.TCGETA)
 | |
| 	return err == nil
 | |
| }
 |