bricks-cli
Version:
Command line tool for developing ambitious ember.js apps
36 lines (33 loc) • 717 B
JavaScript
// Special characters to use for drawing.
var Chars = {
horizontal: '\u2501'
, vertical: '\u2503'
, topLeft: '\u250f'
, topRight: '\u2513'
, bottomLeft: '\u2517'
, bottomRight: '\u251b'
, fail: '\u2718'
, success: '\u2714'
, cross: '\u2718'
, spinner: '\u25dc\u25dd\u25de\u25df'
, dot: '\u00b7'
, mark: '\u2714'
}
if (process.platform === 'win32'){
// Windows (by default) doesn't support the cool unicode characters
Chars = {
horizontal: '-'
, vertical: '|'
, topLeft: '+'
, topRight: '+'
, bottomLeft: '+'
, bottomRight: '+'
, fail: 'x'
, success: 'v'
, cross: 'x'
, spinner: '-\\|/'
, dot: '.'
, mark: 'x'
}
}
module.exports = Chars