« get me outta code hell

unichars.js « util - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/util/unichars.js
blob: ee137e87abc2b3646161320315e19c4b1c92c6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Useful Unicode characters.

module.exports = {
  /* … */ ELLIPSIS: '\u2026',

  /* ─ */ BOX_H: '\u2500',
  /* ━ */ BOX_H_THICK: '\u2501',
  /* ═ */ BOX_H_DOUBLE: '\u2550',
  /* │ */ BOX_V: '\u2502',
  /* ┃ */ BOX_V_THICK: '\u2503',
  /* ║ */ BOX_V_DOUBLE: '\u2551',

  /* ┐ */ BOX_CORNER_TR: '\u2510',
  /* └ */ BOX_CORNER_BL: '\u2514',
  /* ┘ */ BOX_CORNER_BR: '\u2518',
  /* ┌ */ BOX_CORNER_TL: '\u250C',

  /* ░ */ BOX_LIGHT_SHADE: '\u2591',
  /* ▒ */ BOX_MEDIUM_SHADE: '\u2592',
  /* ▓ */ BOX_DARK_SHADE: '\u2593',

  /* ← */ ARROW_LEFT: '\u2190',
  /* ↑ */ ARROW_UP: '\u2191',
  /* → */ ARROW_RIGHT: '\u2192',
  /* ↓ */ ARROW_DOWN: '\u2193',
  /* ↔ */ ARROW_LEFT_RIGHT: '\u2194',
  /* ↕ */ ARROW_UP_DOWN: '\u2195',
  /* ⇐ */ ARROW_LEFT_DOUBLE: '\u21D0',
  /* ⇑ */ ARROW_UP_DOUBLE: '\u21D1',
  /* ⇒ */ ARROW_RIGHT_DOUBLE: '\u21D2',
  /* ⇓ */ ARROW_DOWN_DOUBLE: '\u21D3',
  /* ⇔ */ ARROW_LEFT_RIGHT_DOUBLE: '\u21D4',
  /* ⇕ */ ARROW_UP_DOWN_DOUBLE: '\u21D5'
}