MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / insert_char_styled

Method insert_char_styled

src/text_input.rs:650–653  ·  view source on GitHub ↗

Insert a single typed character in styled mode (auto-escapes).

(&mut self, ch: char, max_length: Option<usize>)

Source from the content-addressed store, hash-verified

648
649 /// Insert a single typed character in styled mode (auto-escapes).
650 pub fn insert_char_styled(&mut self, ch: char, max_length: Option<usize>) {
651 let escaped = styling::escape_char(ch);
652 self.insert_text_styled(&escaped, max_length);
653 }
654
655 /// Backspace in styled mode: delete visual char before cursor.
656 pub fn backspace_styled(&mut self) {

Callers 1

Calls 2

escape_charFunction · 0.85
insert_text_styledMethod · 0.80

Tested by

no test coverage detected