Created
October 28, 2016 04:39
-
-
Save AlexR1712/b0a5ad9fd383f44db6820c5841eba2e3 to your computer and use it in GitHub Desktop.
Gotoxy in native C
This file contains hidden or 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
#include<stdio.h> | |
//gotoxy function | |
void gotoxy(int x,int y) | |
{ | |
printf("%c[%d;%df",0x1B,y,x); | |
} | |
main () | |
{ | |
gotoxy(25,50); //reposition cursor | |
printf("hello world"); //display text | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment