[PATCH v2 21/35] monitor: eliminate monitor_is_hmp_non_interactive method