user interface: hide cursor, set lflags, get window size + fetch window size updates

Signed-off-by: Mattias Andrée <maandree@operamail.com>