summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-08-01 14:26:55 +0000
committerGitHub <noreply@github.com>2019-08-01 14:26:55 +0000
commitf51c7b067a05dec7863cca9b8bfaf8329b0cfdfc (patch)
tree4a140de556b4b93f142d57c56a9d74edfe563211 /alacritty_terminal/src
parent28b726cbfa9788bd563ea7a04212f917cc9341f2 (diff)
downloadalacritty-f51c7b067a05dec7863cca9b8bfaf8329b0cfdfc.tar.gz
alacritty-f51c7b067a05dec7863cca9b8bfaf8329b0cfdfc.zip
Remove color from log output
Fixes #2474.
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r--alacritty_terminal/src/util.rs37
1 files changed, 0 insertions, 37 deletions
diff --git a/alacritty_terminal/src/util.rs b/alacritty_terminal/src/util.rs
index 7bc7c08b..250fa430 100644
--- a/alacritty_terminal/src/util.rs
+++ b/alacritty_terminal/src/util.rs
@@ -44,43 +44,6 @@ pub fn limit<T: Ord>(value: T, min: T, max: T) -> T {
cmp::min(cmp::max(value, min), max)
}
-/// Utilities for writing to the
-pub mod fmt {
- use std::fmt;
-
- macro_rules! define_colors {
- ($($(#[$attrs:meta])* pub struct $s:ident => $color:expr;)*) => {
- $(
- $(#[$attrs])*
- pub struct $s<T>(pub T);
-
- impl<T: fmt::Display> fmt::Display for $s<T> {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- write!(f, concat!("\x1b[", $color, "m{}\x1b[0m"), self.0)
- }
- }
-
- impl<T: fmt::Debug> fmt::Debug for $s<T> {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- write!(f, concat!("\x1b[", $color, "m{:?}\x1b[0m"), self.0)
- }
- }
- )*
- }
- }
-
- define_colors! {
- /// Write a `Display` or `Debug` escaped with Red
- pub struct Red => "31";
-
- /// Write a `Display` or `Debug` escaped with Green
- pub struct Green => "32";
-
- /// Write a `Display` or `Debug` escaped with Yellow
- pub struct Yellow => "33";
- }
-}
-
#[cfg(not(windows))]
pub fn start_daemon<I, S>(program: &str, args: I) -> io::Result<()>
where