Mercurial Hosting > harelet
comparison minibasediolib.h @ 4:0ed615367b10
Automated Vimcurial commmit
author | VilyaemKenyaz |
---|---|
date | Fri, 08 Sep 2023 08:16:07 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:eb7a7364994c | 4:0ed615367b10 |
---|---|
1 //BasedIOLib without *nix conio implementation | |
2 | |
3 //Clear the screen like in the Temple! | |
4 void DocClear(){ | |
5 | |
6 puts("\x1b[H\x1b[J"); | |
7 | |
8 } | |
9 | |
10 | |
11 //Mova the cursor to the top of the screen like in the temple! | |
12 void DocTop(){ | |
13 | |
14 puts("\033[2J"); | |
15 | |
16 } | |
17 | |
18 //Move the cursor to this line and column | |
19 void SetCursor(int line, int column){ | |
20 | |
21 printf("\033[<%d>;<%d>f",line,column); | |
22 | |
23 } | |
24 | |
25 //Print the rest of a string given an indice | |
26 void PutRest(char* ptr, int index){ | |
27 | |
28 ptr += index; | |
29 | |
30 puts(ptr); | |
31 | |
32 } | |
33 | |
34 | |
35 |