Using TERM as suggested in the comment here: https://github.com/NagiosEnterprises/nagioscore/pull/6#discussion_r14309447