Extended ascii and ansi characters in mac osx terminal application

I wanted to create some shellscripts that display beautiful ansi graphics for osx, but unfortunately I find very little information about this topic.

  • osx seems to use the monaco 10 font as the default console font. is there any way to find out all the displayed characters for this font?
  • osx terminal works in UTF-8 by default, as far as I found out (can anyone confirm this?)
  • there is a way to show or enter extended ascii characters in osx (as was done on windows / dos with alt gr + by entering numbers)

thank!

+3
source share
2 answers

In Bash you can:

for i in {32..255}; do printf "$i "\\$(($i/64*100+$i%64/8*10+$i%8))"\n"; done | column

ASCII.

+1

+ shift + option + . utf-8. . FontBook, char.

, .

+1

Source: https://habr.com/ru/post/1728944/


All Articles