fn toggle_open(w: &mut Buffer, text: impl Display)