From 18f30ed7fb55fde982258f4cc00c06f11d691f2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 16 Mar 2018 10:40:44 -0400 Subject: [PATCH 1/1] console: move up services from String to Text, and update doc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/console.nit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/console.nit b/lib/console.nit index 3333cad..917f893 100644 --- a/lib/console.nit +++ b/lib/console.nit @@ -279,8 +279,8 @@ class TermCharFormat fun default_bg: TermCharFormat do return apply("49") end -# Redefine the `String` class to add functions to color the string. -redef class String +# Services to color terminal output +redef class Text private fun apply_format(f: TermCharFormat): String do return "{f}{self}{normal}" end -- 1.7.9.5