(self: Box<Self>)
| 894 | |
| 895 | impl ConsoleHost for SdlConsoleHost { |
| 896 | fn run(self: Box<Self>) -> io::Result<()> { |
| 897 | // TODO(jmmv): The top-level run function should be inlined here but it was kept separate |
| 898 | // during the initial introduction of SdlConsoleHost to keep the diff clean. |
| 899 | run( |
| 900 | self.resolution, |
| 901 | self.default_fg_color, |
| 902 | self.default_bg_color, |
| 903 | self.font, |
| 904 | self.request_rx, |
| 905 | self.response_tx, |
| 906 | self.on_key_tx, |
| 907 | self.signals_tx, |
| 908 | ); |
| 909 | Ok(()) |
| 910 | } |
| 911 | } |
| 912 | |
| 913 | #[cfg(test)] |