def pause_toggle(realm):
    """Toggle the output screen's pausing."""
    output_window = realm.factory.gui.output_window
    if output_window.paused:
        output_window.unpause()
    else:
        output_window.pause()
