I want to know: how to clean screen on an UNIX-based system? I searched on the Internet, but I\'ve just found how to do it on Windows: system(\"CLS\") I don\'t want exactly
Maybe you can make use of escape codes
#include #define clear() printf("\033[H\033[J") int main(void) { clear(); return 0; }
But keep in mind that this method is not compatible with all terminals