(&mut self, control: &str)
| 193 | |
| 194 | impl ControlSequence<'_, '_> { |
| 195 | fn push_control(&mut self, control: &str) -> fmt::Result { |
| 196 | if self.empty { |
| 197 | self.fmt.write_str("\u{1b}[")?; |
| 198 | } else { |
| 199 | self.fmt.write_str(";")?; |
| 200 | } |
| 201 | |
| 202 | self.fmt.write_str(control)?; |
| 203 | self.empty = false; |
| 204 | |
| 205 | Ok(()) |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | #[derive(Copy, Clone, Debug, Eq, PartialEq)] |
no test coverage detected