是否可以在控制台中显示带穿透效果的文本? [英] Is it possible to display text in a console with a strike-through effect?

查看:191
本文介绍了是否可以在控制台中显示带穿透效果的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经看过ANSI转义码了,但看起来只有下划线支持。


解决方案

如果不可能,是否有一些等同于this is deprecated / div>

根据 ECMA-48 终端标准,SGR(选择图形渲染)代码9应该使能交叉文本。但是, ANSI转义码维基百科页面说,它没有得到广泛支持,我不知道有什么。我怀疑这是因为DEC的VTxxx系列不支持它


I have already looked into ANSI escape codes, but it looks like only underlining is supported.

Do I miss something or is there another option?

If it is not possible, is there something equivalent in the meaning of "this is deprecated"?

解决方案

According to the ECMA-48 standard for terminals, SGR (Select Graphic Rendition) code number 9 is supposed to enable crossed-out text. However, the ANSI escape code wikipedia page says that it's not widely supported, and I'm not aware of any that do. I'd suspect that's because DEC's VTxxx series didn't support it.

这篇关于是否可以在控制台中显示带穿透效果的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆