Clearing output of a terminal program in Linux C
问题 I want to clear the output of a C program produced with printf statements. I want to clear only one line, for example: [source] printf("AAAAAAAAAAAAAA\n"); printf("BBBBBBBBBBBBBB\n"); printf("CCCCCCCCCCCCCC\n"); printf("DDDDDDDDDDDDDD\n"); [terminal] AAAAAAAAAAAAAA BBBBBBBBBBBBBB CCCCCCCCCCCCCC DDDDDDDDDDDDDD [I hope] AAAAAAAAAAAAAA BBBBBBBBBBBBBB CCCCCCCCCCCCCC I will "DDDDDDDDDDDDDD" line in write other string. I just want the above A, B, C sentences to left. Only clear D sentences to