Merge branch 'master' into 'master'

Make Color extend Debug

See merge request redox-os/termion!159
This commit is contained in:
Jeremy Soller 2019-04-06 12:38:20 +00:00
commit 5992932c65
1 changed files with 2 additions and 1 deletions

View File

@ -18,10 +18,11 @@ use std::io::{self, Write, Read};
use std::time::{SystemTime, Duration};
use async::async_stdin;
use std::env;
use std::fmt::Debug;
use numtoa::NumToA;
/// A terminal color.
pub trait Color {
pub trait Color: Debug {
/// Write the foreground version of this color.
fn write_fg(&self, f: &mut fmt::Formatter) -> fmt::Result;
/// Write the background version of this color.