'Can we safely interact with the user?
:param bool force_interactive: if interactivity is forced by the
IDisplay call
:returns: True if the display can interact with the user
:rtype: bool'

def _can_interact(self, force_interactive):

    if (self.force_interactive or force_interactive or (sys.stdin.isatty() and self.outfile.isatty())):
        return True
    elif (not self.skipped_interaction):
        logger.warning("Skipped    user    interaction    because    Certbot    doesn't    appear    to    be    running    in    a    terminal.    You    should    probably    include    --non-interactive    or    %s    on    the    command    line.", constants.FORCE_INTERACTIVE_FLAG)
        self.skipped_interaction = True
    return False
