nushell/docs/commands/char.md
JT 8c0a2d3c15
Auto-generate markdown command docs (#4451)
* Finish updating

* a couple improvements

* Update renames

* cleanup examples
2022-02-13 21:22:51 -05:00

705 B

title layout version
char command 0.59.0

Output special characters (e.g., 'newline').

Signature

> char (character) ...rest --list --unicode

Parameters

  • character: the name of the character to output
  • ...rest: multiple Unicode bytes
  • --list: List all supported character names
  • --unicode: Unicode string i.e. 1f378

Examples

Output newline

> char newline

Output prompt character, newline and a hamburger character

> echo [(char prompt) (char newline) (char hamburger)] | str collect

Output Unicode character

> char -u 1f378

Output multi-byte Unicode character

> char -u 1F468 200D 1F466 200D 1F466