ContainsEscapeSequence reports whether b contains an ANSI escape byte (0x1B), which can manipulate a terminal when printed.
(b []byte)
| 16 | // ContainsEscapeSequence reports whether b contains an ANSI escape byte (0x1B), |
| 17 | // which can manipulate a terminal when printed. |
| 18 | func ContainsEscapeSequence(b []byte) bool { |
| 19 | return bytes.IndexByte(b, 0x1B) >= 0 |
| 20 | } |
| 21 | |
| 22 | // BinaryContentType reports whether content appears to be binary and, if so, |
| 23 | // returns its detected MIME type. Textual content returns ("", false). |
no outgoing calls