def METHOD_NAME(request, when, line):
    """Write line instantly."""
    terminal = request.config.pluginmanager.getplugin('terminalreporter')
    if terminal.verbosity <= 0:
        return
    capman = request.config.pluginmanager.getplugin('capturemanager')
    outerr = capman.suspend_global_capture()
    try:
        if outerr is not None:
            out, err = outerr
            request.node.add_report_section(when, 'out', out)
            request.node.add_report_section(when, 'err', err)
        terminal.METHOD_NAME(line)
    finally:
        capman.resume_global_capture()