2 var consoleControl = require('console-control-strings')
3 var ThemeSet = require('./theme-set.js')
5 var themes = module.exports = new ThemeSet()
7 themes.addTheme('ASCII', {
14 activityIndicatorTheme: '-\\|/',
18 themes.addTheme('colorASCII', themes.getTheme('ASCII'), {
20 preComplete: consoleControl.color('inverse'),
22 postComplete: consoleControl.color('stopInverse'),
23 preRemaining: consoleControl.color('brightBlack'),
25 postRemaining: consoleControl.color('reset')
29 themes.addTheme('brailleSpinner', {
36 activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏',
40 themes.addTheme('colorBrailleSpinner', themes.getTheme('brailleSpinner'), {
42 preComplete: consoleControl.color('inverse'),
44 postComplete: consoleControl.color('stopInverse'),
45 preRemaining: consoleControl.color('brightBlack'),
47 postRemaining: consoleControl.color('reset')
51 themes.setDefault({}, 'ASCII')
52 themes.setDefault({hasColor: true}, 'colorASCII')
53 themes.setDefault({platform: 'darwin', hasUnicode: true}, 'brailleSpinner')
54 themes.setDefault({platform: 'darwin', hasUnicode: true, hasColor: true}, 'colorBrailleSpinner')