Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ansiRestoreAttributes (0.2 sec)

  1. internal/logger/utils.go

    	if color.IsTerminal() {
    		ansiEscape("[%dC", n)
    	}
    }
    
    func ansiSaveAttributes() {
    	if runtime.GOOS == "windows" {
    		return
    	}
    	if color.IsTerminal() {
    		ansiEscape("7")
    	}
    }
    
    func ansiRestoreAttributes() {
    	if runtime.GOOS == "windows" {
    		return
    	}
    	if color.IsTerminal() {
    		ansiEscape("8")
    	}
    }
    
    // logIgnoreError if true,the error will ignore.
    func logIgnoreError(err error) bool {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. internal/logger/console.go

    		if !tagPrinted {
    			fmt.Fprint(Output, logBanner)
    			tagPrinted = true
    		} else {
    			fmt.Fprint(Output, emptyBanner)
    		}
    		// Restore the text color of the error message
    		ansiRestoreAttributes()
    		ansiMoveRight(bannerWidth)
    		// Continue  error message printing
    		fmt.Fprintln(Output, line)
    	}
    
    	// Exit because this is a fatal error message
    	ExitFunc(1)
    }
    
    type infoMsg struct{}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top