MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / render_old_ansi

Method render_old_ansi

atomic-core/src/diff/inline.rs:485–487  ·  view source on GitHub ↗

Render the old line with ANSI highlighting for terminal output. Returns a string with ANSI escape codes for colored output.

(&self)

Source from the content-addressed store, hash-verified

483 ///
484 /// Returns a string with ANSI escape codes for colored output.
485 pub fn render_old_ansi(&self) -> String {
486 self.render_with_ansi(self.old_content, &self.old_hunks, true)
487 }
488
489 /// Render the new line with ANSI highlighting for terminal output.
490 ///

Callers 1

Calls 1

render_with_ansiMethod · 0.80

Tested by 1