add basic colormap for output lines

This commit is contained in:
Jake McDermott
2018-08-29 13:20:28 -04:00
parent a549bea815
commit cddceb0e06
2 changed files with 20 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import {
EVENT_START_PLAY,
EVENT_STATS_PLAY,
EVENT_START_TASK,
OUTPUT_ANSI_COLORMAP,
OUTPUT_ELEMENT_TBODY,
OUTPUT_EVENT_LIMIT,
} from './constants';
@@ -20,7 +21,7 @@ const TIME_EVENTS = [
EVENT_STATS_PLAY,
];
const ansi = new Ansi();
const ansi = new Ansi({ stream: true, colors: OUTPUT_ANSI_COLORMAP });
const entities = new Entities.AllHtmlEntities();
// https://github.com/chalk/ansi-regex