(&mut self, text: &str)
| 142 | } |
| 143 | |
| 144 | fn print(&mut self, text: &str) -> io::Result<()> { |
| 145 | let text = remove_control_chars(text); |
| 146 | self.call(Request::Print(text)) |
| 147 | } |
| 148 | |
| 149 | async fn poll_key(&mut self) -> io::Result<Option<Key>> { |
| 150 | match self.on_key_rx.try_recv() { |