pub fn bg(&self, color: color::Color) {
        let color = self.dim_if_necessary(color);
        if self.num_colors > color {
            let s = expand(*self.ti.strings.find_equiv(&("setab")).unwrap(),
                           [Number(color as int)], &mut Variables::new());
            if s.is_ok() {
                self.out.write(s.unwrap());
            } else {
                warn!(s.unwrap_err());
            }
        }
    }
/// Sets the background color to the given color.
///
/// If the color is a bright color, but the terminal only supports 8 colors,
/// the corresponding normal color will be used instead.
Sets the background color to the given color.
If the color is a bright color, but the terminal only supports 8 colors,
the corresponding normal color will be used instead.
Sets the background color to the given color . If the color is a bright color but the terminal only supports 8 colors the corresponding normal color will be used instead .
pub fn bg(&self, color: color::Color) {
        let color = self.dim_if_necessary(color);
        if self.num_colors > color {
            let s = expand(*self.ti.strings.find_equiv(&("setab")).unwrap(),
                           [Number(color as int)], &mut Variables::new());
            if s.is_ok() {
                self.out.write(s.unwrap());
            } else {
                warn!(s.unwrap_err());
            }
        }
    }
pub fn bg ( & self , color : color :: Color ) { let color = self . dim_if_necessary ( color ) ; if self . num_colors > color { let s = expand ( * self . ti . strings . find_equiv ( & ( " " ) ) . unwrap ( ) , [ Number ( color as int ) ] , & mut Variables :: new ( ) ) ; if s . is_ok ( ) { self . out . write ( s . unwrap ( ) ) ; } else { warn ! ( s unwrap_err ( ) ) ; } } }
Sets the background color to the given color.
Sets the background color to the given color .
&self
color
color::Color