由ansicon导入的转义序列是否由Linux本地支持?

时间:2022-02-09 06:22:07

For my final C project, we need to use Visual Studio and install something called Ansicon on our windows machine in order to get escape sequences to be able to program a game.

对于我的最终C项目,我们需要使用Visual Studio并在我们的Windows机器上安装一个名为Ansicon的东西,以便获得转义序列以便能够编写游戏。

Unfortunately, I don't have Visual Studio at home, or Windows, so I would need to use a school computer to do this. I was reading that Ansicon should just install the escape characters that *NIX systems already support.

不幸的是,我家里没有Visual Studio,或者Windows,所以我需要用学校的电脑才能做到这一点。我读到Ansicon应该只安装* NIX系统已经支持的转义字符。

Will I be able to test my game without the functions that Ansicon provides?

没有Ansicon提供的功能,我能否测试我的游戏?

1 个解决方案

#1


1  

After testing the following code

测试以下代码后

printf( "\033[2;1H");
printf( "\033[K"); 

It turns out that this is correct, and that my *NIX system does support escape characters out of the box.

事实证明这是正确的,我的* NIX系统确实支持开箱即用的转义字符。

#1


1  

After testing the following code

测试以下代码后

printf( "\033[2;1H");
printf( "\033[K"); 

It turns out that this is correct, and that my *NIX system does support escape characters out of the box.

事实证明这是正确的,我的* NIX系统确实支持开箱即用的转义字符。