auto merge of #14263 : cmr/rust/termex, r=kballard
This commit is contained in:
commit
86b34bca0f
1 changed files with 5 additions and 2 deletions
|
|
@ -23,10 +23,13 @@
|
|||
//!
|
||||
//! fn main() {
|
||||
//! let mut t = term::stdout().unwrap();
|
||||
//!
|
||||
//! t.fg(term::color::GREEN).unwrap();
|
||||
//! println!("hello, ");
|
||||
//! (write!(t, "hello, ")).unwrap();
|
||||
//!
|
||||
//! t.fg(term::color::RED).unwrap();
|
||||
//! println!("world!");
|
||||
//! (writeln!(t, "world!")).unwrap();
|
||||
//!
|
||||
//! t.reset().unwrap();
|
||||
//! }
|
||||
//! ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue