Is it possible to display text in a console with a strike-through effect?

后端 未结 2 601
小蘑菇
小蘑菇 2021-01-04 07:59

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 p

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-04 09:00

    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.

提交回复
热议问题