C# - 使用 ANSI 代码使文本在控制台中闪烁

C# - Make text blinking in console using ANSI codes

我的目标是让我的文本在控制台中闪烁。我知道如何使用提供此选项的计时器(Link), but I want to do this using ANSI codes not like Here. I am aware of the fact, that ANSI codes work in console. Because colors, bold and underline work fine. Blinking text should look like that: "Normal \e[5mBlink", but it is not working. I know projects like SadConsole,但我不知道它是如何工作的。所以,有人可以帮我解决这个问题吗?

PS。这是我所知道的关于 ANSI 的参考资料:Link

在包含受支持的 ansi 序列的 msdn "Console Virtual Terminal Sequences" 参考中,没有闪烁效果。抱歉:-)

准确的说,在Text Formatting下:

0 默认Returns 所有属性为修改前的默认状态

1 Bold/Bright 将 brightness/intensity 标志应用于前景色

4 下划线 添加下划线

24 无下划线 删除下划线

7 负互换前景色和背景色

但是没有5,就是Blink

Blink 不适用于大多数终端仿真器,但适用于 tty 和 XTerm。