mac osx 终端应用程序中的扩展 ascii 字符和 ansi

发布于 2024-08-19 00:39:38 字数 279 浏览 5 评论 0原文

我想创建一些 shellscripts,为 osx 显示漂亮的 ansi 彩色图形,但不幸的是我发现有关该主题的信息很少。

  1. osx 似乎使用 monaco 10 作为其默认控制台字体。有没有办法找出该字体的所有可显示字符?
  2. 据我所知,osx 终端默认以 UTF-8 运行(有人能确认这一点吗?)
  3. 有没有办法在 osx 上显示或输入扩展的 ascii 字符(如何在 windows/dos 上使用 alt gr+entering 完成)数字)

谢谢!

i wanted to create some shellscripts that display pretty ansi colored graphics for osx but unfortunately i find just very little information about that topic.

  1. osx seems to use monaco 10 as its default console font. is there some way to find out all displayable characters for this font?
  2. osx terminal runs in UTF-8 per default as far as i found out (can somebody confirm this?)
  3. is there a way to show or enter the extended ascii characters on osx (how it was done on windows/dos with alt gr+entering the digits)

thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱给你人给你 2024-08-26 00:39:38

在 Bash 中,您应该能够执行以下操作:

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

获取 ASCII 字符表。

In Bash, you should be able to do:

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

to get a table of ASCII characters.

灯下孤影 2024-08-26 00:39:38

扩展字符通常通过 option+字符键和 shift+option+字符键来使用。我相信终端默认是 utf-8 。摩纳哥应该支持完整的字符映射表。如果您打开 FontBook,您可以访问那里的字符映射。

此外,您可以从终端的首选项窗格中自定义许多此类内容。

Extended chars ar usually hused thorugh option+character key and shift+option+character key. I beleive terminal is utf-8 by default. Monaco should support the compelete character map. If you open up FontBook you can gain access to the char map there.

Additionally you can customize a lot of this type of thing from the preferences pane for terminal.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文