linux clr + topleft

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangcg123/article/details/86704054

发现一个好玩的,可以调试一些循环逻辑时 进行一下clr动作,方便阅读

	const char clr[] = { 27, '[', '2', 'J', '\0' };
	const char topLeft[] = { 27, '[', '1', ';', '1', 'H','\0' };

		/* Clear screen and move to top left */
	printf("%s%s", clr, topLeft);

	printf("\nPort statistics ====================================");

猜你喜欢

转载自blog.csdn.net/wangcg123/article/details/86704054
CLR
今日推荐