Feature request: emulate Gnome terminal non-standard behavior for CSI0 q
iTerm supports the
\033[<digit> q escape sequences for changing cursor shape, which is great.
I've been digging around for a way to restore the user's default cursor shape on exit, and I ran across this thread, where it turns out that Gnome terminal (at least) has a non-standard behavior if
<digit> is zero, or if no digit is provided, of restoring the user-selected default cursor.
A close reading of the DECSCUSR entry on ctrlseqs would suggest that the best option from the point of view of the documentation, would be to restore the user default where the digit is 1.
But given what's out in the wild, doing what Gnome does would be the better choice for application developers, and hence for users.
iTerm's current behavior is to display a blinking block for either of 0, 1, or missing digit.
Adding the same behavior to the proprietary escape sequences would also make sense, although this matters less to me, personally.