linux shell 滚动字符显示

linux shell 滚动字符显示_第1张图片
字符滚动效果

source code:

#include 
#include 

int main()
{
    printf("1\r");
    fflush(stdout);
    sleep(1);
    printf("2\r");
    fflush(stdout);
    sleep(1);
    printf("3\r");
    fflush(stdout);
    sleep(1);
    printf("over\n");

    return 0;
}

你可能感兴趣的:(linux shell 滚动字符显示)