beb4120adc
Wrap fallible draw operations in closures so that ESC[?2026l is always sent regardless of whether an intermediate step (write_all, flush, clear, draw) returns an error. Without this, a failing ? would return early and leave the terminal stuck in synchronized-update mode with a frozen screen. Review feedback from gemini-code-assist[bot] on #1361.