mrlib/terminal: fix eventspace handling in non-frame mode
fix various problems with the GUI package manager