Created
June 20, 2018 10:47
-
-
Save j000/543ca3c38dd1249c2d77ddb3ef8279a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void wypisz_lewo(const unsigned linia, const char *tekst) { | |
pthread_mutex_lock(&print); | |
/* usuń "linię" i ustaw kursor po lewej i wypisz tekst */ | |
printf("\033[%u;0H" spacje spacje "\033[%u;0H%s", linia, linia, tekst); | |
fflush(stdout); | |
pthread_mutex_unlock(&print); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment