mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			225 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			225 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build !windows
 | |
| 
 | |
| package terminal
 | |
| 
 | |
| import (
 | |
| 	"os"
 | |
| 	"strings"
 | |
| )
 | |
| 
 | |
| // supportsEscapeCodes returns true if console handles escape codes.
 | |
| func supportsEscapeCodes() bool {
 | |
| 	return strings.ToLower(os.Getenv("TERM")) != "dumb"
 | |
| }
 | 
