Returns the ANSI-encoded cursor shape code.
int encode({required bool blink}) { // s = (s*2)+1; if !blink { s++ } var s = (index * 2) + 1; if (!blink) s++; return s; }