xterm 中的光栅图形?

发布于 2024-08-19 06:43:49 字数 540 浏览 13 评论 0原文

不,不是 ASCII 图形,请参见此处的屏幕截图:

http://en.wikipedia.org/wiki/W3m< /a>

image

这怎么可能?

我检查了源代码,它只打印字符序列。但是,我无法在 xterm 文档或其他地方找到任何对图形绘制或图像嵌入转义序列的引用。

w3m 似乎也是唯一执行此操作的软件。

泰克仿真中有矢量图形,但这是在 VT 模式下完成的。

也许我正在寻找错误的东西?

有什么想法吗?

No, not ASCII graphics, see the screenshot here:

http://en.wikipedia.org/wiki/W3m

image

How is that even possible?

I checked the source and it only prints character sequences. However, I am unable to find any reference to graphic drawing or image embedding escape sequences in xterm documentation or elsewhere.

w3m also seems to be the only software doing this.

There are vector graphics in Tektronix emulation, but this is done in VT mode.

Maybe I am looking for the wrong thing?

Any idea?

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

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

发布评论

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

评论(4

栖迟 2024-08-26 06:43:49

这是一个骗子。

请注意,此功能仅在“支持的终端”中起作用 - 这意味着 xterm,并通过

或不!刚刚检查了来源,我们感兴趣的文件是

It's a cheat.

Note that this feature works only in "supported terminals" -- and by that it meant xterm, and rendering directly on the xterm window via xv.

Or not! Just checked the sources, the file that interests us is here. It's still a hack -- via X11 and GTK!

爱你不解释 2024-08-26 06:43:49

MLTerm,它支持 Sixel 格式(不是 ReGis 命令)。它适用于 Linux 和 Windows。

否则,根据 Ubuntu 上的 man xterm 12.04xterm 支持 Tektronix 图形,该图形(手册页确实告诉)使用 ReGIS 命令或 Sixel 位图格式,具体取决于编译选项(我相信 它是 Ubuntu 软件包存储库中 XTerm 的 Sixel)。

需要知道的一件事是,ReGIS 是一种指令集,而 Sixel 是一种位图格式。

附带说明一下,存在一个使用 Sixel 感知终端模拟器的 Python 包:PySixel

我也对这个主题感兴趣,并且将来可能会更新这个答案以及其他相关的终端模拟器条目。

There is MLTerm, which supports Sixel format (not ReGis commands). It's available for both Linux and Windows.

Otherwise, according to man xterm on Ubuntu 12.04, xterm supports Tektronix graphics, which (the man page does tell) use ReGIS commands or Sixel bitmap format, depending on compilation options (I believe it's Sixel for the XTerm in the Ubuntu package repository).

One thing to know, is that ReGIS is an instruction set, while Sixel is a bitmap format.

As a side note, there exists a Python package to use Sixel aware terminal emulators: PySixel.

I'm interested in the topic too, and may update this answer in the future, with other relevant terminal emulators entries.

亣腦蒛氧 2024-08-26 06:43:49

Dec VT 终端的高端型号支持 ReGisSixel 图形命令。如果 xterm 模拟足够好,也许就是这样做的?

Higher-end models of Dec VT terminals support ReGis and Sixel graphics commands. If the xterm emulation is good enough, maybe that's how it was done?

话少情深 2024-08-26 06:43:49

Xterm 支持 Sixel 和 ReGIS 协议,允许使用转义序列直接在终端中渲染图形。但是,Unicode 会干扰 8 位转义序列,因此您可能需要将它们转换为 7 位序列。

https://en.wikipedia.org/wiki/Sixel

https://en.wikipedia.org/wiki/ReGIS

Xterm supports the sixel and ReGIS protocols which allow rendering graphics directly in the terminal using escape sequences. However, Unicode interferes with 8 bit escape sequences, so you may need to convert them to 7bit sequences.

https://en.wikipedia.org/wiki/Sixel

https://en.wikipedia.org/wiki/ReGIS

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