ansi escape sequences not working in windows cmd prompt

耗尽温柔 提交于 2019-12-10 15:56:18

问题


I tried the ANSI escape sequences like \033[K \033[%dd \033[%dG etc, in AIX. When I used telnet in windows, it didn't work. The same is working fine using putty.

I don't want to use NCURSES, but printfs. Any idea will be appreciated.


回答1:


Windows's command-prompt is not ANSI.

It has its own set of commands to use, but they are not escape sequences.

You can, however, use ANSI.SYS to gain access to similar functionality.

Read more here.



来源:https://stackoverflow.com/questions/6532295/ansi-escape-sequences-not-working-in-windows-cmd-prompt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!