view minibasediolib.h @ 6:ec82c868b8b0

Automated Vimcurial commmit
author VilyaemKenyaz
date Sat, 09 Sep 2023 16:44:53 -0400
parents 0ed615367b10
children
line wrap: on
line source

//BasedIOLib without *nix conio implementation

//Clear the screen like in the Temple!
void DocClear(){

puts("\x1b[H\x1b[J");

}


//Mova the cursor to the top of the screen like in the temple!
void DocTop(){

puts("\033[2J");

}

//Move the cursor to this line and column
void SetCursor(int line, int column){

printf("\033[<%d>;<%d>f",line,column);

}

//Print the rest of a string given an indice
void PutRest(char* ptr, int index){

ptr += index;

puts(ptr);

}