diff --git a/packages/orm/angel_orm_test/lib/src/util.dart b/packages/orm/angel_orm_test/lib/src/util.dart index 897050af..ec1af996 100644 --- a/packages/orm/angel_orm_test/lib/src/util.dart +++ b/packages/orm/angel_orm_test/lib/src/util.dart @@ -3,7 +3,12 @@ import 'package:io/ansi.dart'; void printSeparator(String title) { var b = StringBuffer('===' + title.toUpperCase()); - for (var i = b.length; i < stdout.terminalColumns - 3; i++) { + + int columns = 80; + if (stdout.hasTerminal) { + columns = stdout.terminalColumns - 3; + } + for (var i = b.length; i < columns; i++) { b.write('='); } for (var i = 0; i < 3; i++) {