GithubHelp home page GithubHelp logo

isabella232 / clisymbols Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r-lib/clisymbols

0.0 0.0 0.0 27 KB

Unicode symbols for CLI applications, with fallbacks

License: Other

Makefile 1.81% R 98.19%

clisymbols's Introduction

clisymbols

Linux Build Status Windows Build status CRAN RStudio mirror downloads

Unicode symbols with Windows fallbacks

Inspired by (and mostly copied from) the figures JavaScript project.

Install

install.packages("clisymbols")

Usage

library(clisymbols)
cat(symbol$tick, "All good\n")
#> ✔ All good
cat(symbol$cross, "Problem\n")
#> ✖ Problem

Here is a list of all symbols, with their names:

for (i in seq_along(symbol)) {
  cat(symbol[[i]], "\t", names(symbol)[i], "\n", sep = "")
}
#> ✔	tick
#> ✖	cross
#> ★	star
#> ▇	square
#> ◻	square_small
#> ◼	square_small_filled
#> ◯	circle
#> ◉	circle_filled
#> ◌	circle_dotted
#> ◎	circle_double
#> ⓞ	circle_circle
#> ⓧ	circle_cross
#> Ⓘ	circle_pipe
#> ?⃝	circle_question_mark
#> ●	bullet
#> ․	dot
#> ─	line
#> ═	double_line
#> …	ellipsis
#> ❯	pointer
#> ℹ	info
#> ⚠	warning
#> ☰	menu
#> ☺	smiley
#> ෴	mustache
#> ♥	heart
#> ↑	arrow_up
#> ↓	arrow_down
#> ←	arrow_left
#> →	arrow_right
#> ◉	radio_on
#> ◯	radio_off
#> ☒	checkbox_on
#> ☐	checkbox_off
#> ⓧ	checkbox_circle_on
#> Ⓘ	checkbox_circle_off
#> ❓	fancy_question_mark
#> ≠	neq
#> ≥	geq
#> ≤	leq
#> ×	times
#> ▔	upper_block_1
#> ▀	upper_block_4
#> ▁	lower_block_1
#> ▂	lower_block_2
#> ▃	lower_block_3
#> ▄	lower_block_4
#> ▅	lower_block_5
#> ▆	lower_block_6
#> ▇	lower_block_7
#> █	lower_block_8
#> █	full_block

Fallback symbols

Some terminals do not support (all) Unicode characters, and on these reasonable ASCII substitutes are used:

#> √   tick
#> x   cross
#> *   star
#> █   square
#> [ ] square_small
#> [█] square_small_filled
#> ( ) circle
#> (*) circle_filled
#> ( ) circle_dotted
#> (o) circle_double
#> (o) circle_circle
#> (x) circle_cross
#> (|) circle_pipe
#> (?) circle_question_mark
#> *   bullet
#> .   dot
#> ─   line
#> =   double_line
#> ... ellipsis
#> >   pointer
#> i   info
#> ‼   warning
#> ≡   menu
#> ☺   smiley
#> ┌─┐ mustache
#> ♥   heart
#> ^   arrow_up
#> v   arrow_down
#> <   arrow_left
#> >   arrow_right
#> (*) radio_on
#> ( ) radio_off
#> [x] checkbox_on
#> [ ] checkbox_off
#> (x) checkbox_circle_on
#> ( ) checkbox_circle_off
#> (?) fancy_question_mark
#> !=  neq
#> >=  geq
#> <=  leq
#> x   times
#> ^   upper_block_1
#> ^   upper_block_4
#> .   lower_block_1
#> _   lower_block_2
#> _   lower_block_3
#> =   lower_block_4
#> =   lower_block_5
#> *   lower_block_6
#> █   lower_block_7
#> █   lower_block_8
#> █   full_block

License

MIT © Gabor Csardi and Sindre Sorhus

clisymbols's People

Contributors

gaborcsardi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.