fn render_init_term(
        &self,
        buf: &mut String,
        colors: Color2,
        cursor: Vec2,
    ) -> Result<(), Error> {
        write!(
            buf,
            "{}{}{}",
            crossterm::style::SetForegroundColor(
                colors.foreground.to_crossterm()
            ),
            crossterm::style::SetBackgroundColor(
                colors.background.to_crossterm()
            ),
            crossterm::cursor::MoveTo(
                coord::to_crossterm(cursor.x),
                coord::to_crossterm(cursor.y)
            ),
        )?;

        Ok(())
    }
/// Initializes terminal state into the buffer before rendering.
Initializes terminal state into the buffer before rendering.
Initializes terminal state into the buffer before rendering .
fn render_init_term(
        &self,
        buf: &mut String,
        colors: Color2,
        cursor: Vec2,
    ) -> Result<(), Error> {
        write!(
            buf,
            "{}{}{}",
            crossterm::style::SetForegroundColor(
                colors.foreground.to_crossterm()
            ),
            crossterm::style::SetBackgroundColor(
                colors.background.to_crossterm()
            ),
            crossterm::cursor::MoveTo(
                coord::to_crossterm(cursor.x),
                coord::to_crossterm(cursor.y)
            ),
        )?;
        Ok(())
    }
fn render_init_term ( & self , buf : & mut String , colors : Color2 , cursor : Vec2 , ) -> Result < ( ) , Error > { write ! ( buf " " crossterm style SetForegroundColor ( colors foreground to_crossterm ( ) ) crossterm style SetBackgroundColor ( colors background to_crossterm ( ) ) crossterm cursor MoveTo ( coord to_crossterm ( cursor x ) coord to_crossterm ( cursor y ) ) ) ? ; Ok ( ( ) ) }
Initializes terminal state into the buffer before rendering.
Initializes terminal state into the buffer before rendering .
&self
buf
&mut String
colors
Color2
cursor
Vec2
&self
buf
&mut String
colors
Color2
cursor
Vec2