No description
Find a file
2020-04-22 19:55:50 -05:00
.github Add github sponsors username 2020-04-22 19:55:50 -05:00
src Add nodejs figure 2019-10-26 21:04:08 -05:00
tests Add nodejs figure 2019-10-26 21:04:08 -05:00
.gitignore removed test binary and added to gitignore 2018-07-08 13:11:21 -05:00
figures.nimble Add nodejs figure 2019-10-26 21:04:08 -05:00
LICENSE Cleaned code and updated some dates 2019-06-23 00:11:46 -05:00

figures

Unicode symbols with Windows CMD fallbacks

and more...

Windows CMD only supports a limited character set.

All checks run at compile time, if you need a run time solution please let me know and will consider adding support for it.

The new windows terminal and integrated VsCode terminal fully support Unicode symbols.

Based from npm figures by sindresorhus.

Install

$ nimble install figures

Usage

See the source for supported symbols.

To use unicode in windows you must change the codepage. By default it sets up chcp on startup, to disable this functionality and manually set it up define nochcp.

from figures import nil

echo(figures.tick & " done")
// Other OSes: ✔︎ done
// On Windows: √ done

Figures

Name Other OSes Windows
tick
cross ×
star *
square
squareSmall [ ]
squareSmallFilled [█]
play
circle ( )
circleFilled (*)
circleDotted ( )
circleDouble ( )
circleCircle (○)
circleCross (×)
circlePipe (│)
circleQuestionMark ?⃝ (?)
bullet *
dot .
line
ellipsis ...
point >
pointerSmall »
info i
warning
hamburger
smiley
mustache ┌─┐
heart
arrowUp
arrowDown
arrowLeft
arrowRight
radioOn (*)
radioOff ( )
checkboxOn [×]
checkboxOff [ ]
checkboxCircleOn (×)
checkboxCircleOff ( )
questionMarkPrefix ?⃝
oneHalf ½ 1/2
oneThird 1/3
oneQuarter ¼ 1/4
oneFifth 1/5
oneSixth 1/6
oneSeventh 1/7
oneEighth 1/8
oneNinth 1/9
oneTenth 1/10
twoThirds 2/3
twoFifths 2/5
threeQuarters ¾ 3/4
threeFifths 3/5
threeEighths 3/8
fourFifths 4/5
fiveSixths 5/6
fiveEighths 5/8
sevenEighths 7/8
(array) spinner ⠋, ⠙, ⠹, ⠸, ⠼, ⠴, ⠦, ⠧, ⠇, ⠏ -, , I, /