MCPcopy Create free account
hub / github.com/hashintel/hash / push_control

Method push_control

libs/error-stack/src/fmt/color.rs:195–206  ·  view source on GitHub ↗
(&mut self, control: &str)

Source from the content-addressed store, hash-verified

193
194impl 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)]

Callers 2

start_ansiMethod · 0.80
end_ansiMethod · 0.80

Calls 2

OkInterface · 0.85
write_strMethod · 0.45

Tested by

no test coverage detected