Get the style example compiling again (#106)
This commit is contained in:
parent
c37a480f78
commit
70d6fa9b2a
@ -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
|
||||||
|
@ -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();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user