async fn render_cursor<'terminal>(
        &self,
        screen: &mut Screen<'terminal>,
        color: Color,
    ) {
        // A space with the given colors.
        let tile = Tile {
            grapheme: TermGrapheme::space(),
            colors: Color2 {
                // Dummy foreground color here. Ignored since the grapheme is a
                // blank space.
                foreground: BasicColor::White.into(),
                // Actually used color.
                background: color,
            },
        };
        // Sets the cursor's character and colors.
        screen.set(self.cursor, tile);
    }
/// Renders the cursor with the given color.
Renders the cursor with the given color.
Renders the cursor with the given color .
async fn render_cursor<'terminal>(
        &self,
        screen: &mut Screen<'terminal>,
        color: Color,
    ) {
        // A space with the given colors.
        let tile = Tile {
            grapheme: TermGrapheme::space(),
            colors: Color2 {
                // Dummy foreground color here. Ignored since the grapheme is a
                // blank space.
                foreground: BasicColor::White.into(),
                // Actually used color.
                background: color,
            },
        };
        // Sets the cursor's character and colors.
        screen.set(self.cursor, tile);
    }
async fn render_cursor < ' terminal > ( & self , screen : & mut Screen < ' terminal > , color : Color , ) { // A space with the given colors. let tile = Tile { grapheme : TermGrapheme :: space ( ) , colors : Color2 { // Dummy foreground color here. Ignored since the grapheme is a // blank space. foreground : BasicColor :: White . into ( ) , // Actually used color. background : color , } , } ; // Sets the cursor's character and colors. screen . set ( self . cursor , tile ) ; }
Renders the cursor with the given color.
Renders the cursor with the given color .
&self
screen
&mut Screen<'terminal>
color
Color
&self
screen
&mut Screen<'terminal>
color
Color