aboutsummaryrefslogtreecommitdiffstats
path: root/cursor.h
blob: d0cd10831721ddfb57ab4fe7aa152886b87549a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef INCLUDE_BLASSIC_CURSOR_H
#define INCLUDE_BLASSIC_CURSOR_H

// cursor.h
// Revision 7-feb-2005


#include <string>


namespace cursor {

void initconsole ();
void quitconsole ();

size_t getwidth ();

void cursorvisible ();
void cursorinvisible ();
void showcursor ();
void hidecursor ();

void cls ();

//void locate (int row, int col);
void gotoxy (int x, int y);
int getcursorx ();
void movecharforward ();
void movecharback ();
void movecharforward (size_t n);
void movecharback (size_t n);
void movecharup ();
void movechardown ();
void movecharup (size_t n);
void movechardown (size_t n);
void savecursorpos ();
void restorecursorpos ();

void textcolor (int color);
void textbackground (int color);

std::string inkey ();
std::string getkey ();
bool pollin ();

void clean_input ();

void ring ();

void set_title (const std::string & title);

} // namespace cursor

#endif

// Fin de cursor.h
Un proyecto texto-plano.xyz