Get the style example compiling again (#106)

This commit is contained in:
Wesley Moore 2019-03-17 19:31:39 +11:00 committed by Timon
parent c37a480f78
commit 70d6fa9b2a
2 changed files with 8 additions and 2 deletions

View File

@ -48,7 +48,7 @@ pub fn move_down() {
} }
/// Save and reset cursor position | demonstration.. /// Save and reset cursor position | demonstration..
pub fn safe_and_reset_position() { pub fn save_and_reset_position() {
let cursor = cursor(); let cursor = cursor();
// Goto X: 5 Y: 5 // Goto X: 5 Y: 5

View File

@ -3,7 +3,7 @@
//! //!
extern crate crossterm; extern crate crossterm;
use self::crossterm::{style, Color}; use self::crossterm::{style, Color, color};
/// print some red font | demonstration. /// print some red font | demonstration.
pub fn paint_foreground() { pub fn paint_foreground() {
@ -230,3 +230,9 @@ pub fn print_supported_colors() {
); );
} }
} }
fn main() {
print_all_background_colors();
print_all_foreground_colors();
print_font_with_attributes();
}