Make mode menu work for terminals with < 30 rows