When the terminal gains focus emit:
ESC1b [5b I49
When the terminal looses focus emit:
ESC1b [5b O4f
Sends current focus state on mode activation.