Keep them in a single write call to minimize the chances of issues like https://github.com/wez/wezterm/issues/2060