Registers handler for terminal resize (new column/row counts).
handler
void onResize(void Function(int cols, int rows) handler);