From 1e16276be4413987e696d20cfa70de7263f9ca3e Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 9 Oct 2019 10:38:44 -0400 Subject: [PATCH] Add color to printSeparator --- angel_orm_test/lib/src/util.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/angel_orm_test/lib/src/util.dart b/angel_orm_test/lib/src/util.dart index ea791960..eadc05b0 100644 --- a/angel_orm_test/lib/src/util.dart +++ b/angel_orm_test/lib/src/util.dart @@ -1,11 +1,12 @@ import 'dart:io'; +import 'package:io/ansi.dart'; void printSeparator(String title) { - var b = StringBuffer(title.toUpperCase()); - for (int i = b.length; i < stdout.terminalColumns; i++) { + var b = StringBuffer('===' + title.toUpperCase()); + for (int i = b.length; i < stdout.terminalColumns - 3; i++) { b.write('='); } for (int i = 0; i < 3; i++) { - print(b); + print(magenta.wrap(b.toString())); } }