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