...

Source file src/github.com/Azure/go-ansiterm/winterm/utilities.go

Documentation: github.com/Azure/go-ansiterm/winterm

     1  // +build windows
     2  
     3  package winterm
     4  
     5  // AddInRange increments a value by the passed quantity while ensuring the values
     6  // always remain within the supplied min / max range.
     7  func addInRange(n int16, increment int16, min int16, max int16) int16 {
     8  	return ensureInRange(n+increment, min, max)
     9  }
    10  

View as plain text