cha(rs) is a commandline tool to display information about unicode characters
cha(rs) is a commandline tool to display information about unicode characters
Use this tool to display names and codes for various ASCII (and unicode) characters / code points!
It's strongly inspired by
ascii(1), but supports unicode
characters; it's also inspired by
unicode.py,
but it attempts to support whitespace/control characters better.
Cha(rs) is currently probably failing at some other edge case, but I hope not.
How do you pronounce "chars"? This is a contentious thing.
This package is tested on circle CI using the latest stable, beta and nightly releases. Older releases might work, but I'm focusing development mostly on the latest versions.
cargo install chars --git https://github.com/antifuchs/chars.git
Arch linux: There's an AUR package for chars.
MacOS There's a Homebrew package for chars.
Windows: There's a package available through Chocolatey.
cd into the checkout,cargo install --path charsLook up a character by its face value:
chars 'ß'
Screenshot:
LATIN1 df, 223, 0xdf, 0337, bits 11011111
Width: 1 (2 in CJK context), prints as ß
Lower case. Upcases to SS
Quotes as \\u{df}
Unicode name: LATIN SMALL LETTER SHARP SLook up a character by its unicode point:
chars U+1F63C
Screenshot:
U+0001F63C, 😼 0x0001F63C, \0373074, UTF-8: f0 9f 98 bc, UTF-16BE: d83dde3c
Width: 1, prints as
Quotes as \\u{1f63c}
Unicode name: CAT FACE WITH WRY SMILELook up a character by ambiguous "char code" handwaving:
chars 10
Screenshot:
…Look a control character:
chars "^C"
Screenshot:
ASCII 0/3, 3, 0x03, 0003, bits 00000011
Control character; quotes as \\u{3}, called ^C
Called: ETX
Also known as: End of TextNo open issues yet, or sync has not completed.