INNER CODE UNIT · Rust

config

lemunozm/ruscii · src/app.rs:89

    pub fn config(config: Config) -> App {
        App {
            config,
            state: State::default(),
            window: Window::default(),
        }
    }

    pub fn window(&self) -> &Window {
        &self.window
    }

    /// Begins running the terminal application.
    ///
    /// This function begins a loop where key events are first registered, the window is cleared,
    /// `frame_action` is called adding characters to the `Canvas`, and the window is redrawn.
    ///
    /// If the time it takes to execute all of these is less than the [`App`] expects according to

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…