mac osx 终端应用程序中的扩展 ascii 字符和 ansi
我想创建一些 shellscripts,为 osx 显示漂亮的 ansi 彩色图形,但不幸的是我发现有关该主题的信息很少。
- osx 似乎使用 monaco 10 作为其默认控制台字体。有没有办法找出该字体的所有可显示字符?
- 据我所知,osx 终端默认以 UTF-8 运行(有人能确认这一点吗?)
- 有没有办法在 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.
- osx seems to use monaco 10 as its default console font. is there some way to find out all displayable characters for this font?
- osx terminal runs in UTF-8 per default as far as i found out (can somebody confirm this?)
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Bash 中,您应该能够执行以下操作:
获取 ASCII 字符表。
In Bash, you should be able to do:
to get a table of ASCII characters.
扩展字符通常通过 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.