« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/unichars.js
diff options
context:
space:
mode:
Diffstat (limited to 'unichars.js')
-rw-r--r--unichars.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/unichars.js b/unichars.js
new file mode 100644
index 0000000..d685890
--- /dev/null
+++ b/unichars.js
@@ -0,0 +1,17 @@
+// 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'
+}