1package ansiterm
2
3import (
4	"strconv"
5)
6
7func sliceContains(bytes []byte, b byte) bool {
8	for _, v := range bytes {
9		if v == b {
10			return true
11		}
12	}
13
14	return false
15}
16
17func convertBytesToInteger(bytes []byte) int {
18	s := string(bytes)
19	i, _ := strconv.Atoi(s)
20	return i
21}
22