diff minibasediolib.h @ 4:0ed615367b10

Automated Vimcurial commmit
author VilyaemKenyaz
date Fri, 08 Sep 2023 08:16:07 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/minibasediolib.h	Fri Sep 08 08:16:07 2023 -0400
@@ -0,0 +1,35 @@
+//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);
+
+}
+
+
+