c - overwriting characters in a printf statement to implement snake -


hey how overwrite characters in c ? in printf statement. want go , overwrite @ space , increment @ on screen. i'm trying implement snake game.

#include<stdio.h> #include<conio.h> main() {    printf("@"); } 

what looking ansi control characters. sending allow move cursor.

e.g.:

printf("%c[%da", 0x1b, 10); // move cursor 10 lines 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -