setCursorShape method
Implementation
@override
void setCursorShape(int style) {
_applicationCursorType = switch (style) {
0 || 1 || 2 => TerminalCursorType.block,
3 || 4 => TerminalCursorType.underline,
5 || 6 => TerminalCursorType.verticalBar,
_ => _applicationCursorType,
};
if (style < 0 || style > 6) return;
_cursorBlinkMode = style == 0 || style.isOdd;
}