这里\033[是转义子列,表示后面接的是颜色代码(亮度;背景色;前景色)
01是高亮度,不写是低亮度。40是背景色,40:黑,41:红:42:绿,43:黄,44:青,45:蓝,47:白。
32是前景色:30:黑,31:红,32:绿,33:黄,34:蓝,35:紫,36:青,37:白。
printf("\033[0;40;32m Begin to download \033[0m \n");
printf("\033[01;40;32m Begin \033[0m\n");
printf("\033[01;40;37m begin \033[0m\n");
阅读(529) | 评论(0) | 转发(0) |