onResize abstract method

void onResize(
  1. void handler(
    1. int cols,
    2. int rows
    )
)

Registers handler for terminal resize (new column/row counts).

Implementation

void onResize(void Function(int cols, int rows) handler);