Search code examples
linuxextended-ascii

Extended Ascii in Linux


How would I print these characters in Linux?

│ (ascii 179)

├ (ascii 195)

└ (ascii 192)

─ (ascii 196)

I cannot find any octal values that would work with echo -e "\0xxx", any ideas?


Solution

  • After much poring over man printf and info printf, I think I've gotten this to work.

    The basic issue seems to be that bash has a built-in printf that doesn't work. And, despite what the man/info pages, say, \U doesn't work. \u still does, though.

    env printf '\u2502'

    gets me a vertical box character.