forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/Azure/go-ansiterm/winterm/utilities.go

10 lines
291 B
Go
Raw Normal View History

2024-08-29 03:26:59 +00:00
// +build windows
package winterm
// AddInRange increments a value by the passed quantity while ensuring the values
// always remain within the supplied min / max range.
func addInRange(n int16, increment int16, min int16, max int16) int16 {
return ensureInRange(n+increment, min, max)
}