// Draw a diagram showing the VT sequence. // // There are some special sequence elements that can be used: // // - CSI will be replaced with ESC [. // - Pn will be considered a parameter // export default function VTSequence({ sequence, }: { sequence: string | [string]; }) { let arr: [string] = typeof sequence === "string" ? [sequence] : sequence; if (arr[0] === "CSI") { arr.shift(); arr.unshift("ESC", "["); } return (