This reverts commit ab8371a26c. Need to think of a different solution, which may require adding new flags to nvim_ui_attach() (e.g. passing stdout or stderr fd).
ab8371a26c