[PATCH v5 13/35] monitor: use class methods for monitor_accept_input