(data []byte, start int)
| 465 | } |
| 466 | |
| 467 | func consumeDebugTermCSI(data []byte, start int) ([]byte, int) { |
| 468 | i := start + 2 |
| 469 | for i < len(data) { |
| 470 | if data[i] >= 0x40 && data[i] <= 0x7e { |
| 471 | return data[start : i+1], i + 1 |
| 472 | } |
| 473 | i++ |
| 474 | } |
| 475 | return data[start:], len(data) |
| 476 | } |
| 477 | |
| 478 | func formatDebugTermOSCLine(seq []byte) string { |
| 479 | // seq is the full sequence starting with ESC ] |
no outgoing calls
no test coverage detected