Menu

[b84aab]: / src / common / dev_term.h  Maximize  Restore  History

Download this file

44 lines (39 with data), 1.0 kB

 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
/*
* SmallBASIC platform driver for Unix,
* UNIX TERMINAL DRIVER
*
* 2001-12-12, Nicholas Christopoulos
*
* This program is distributed under the terms of the GPL v2.0 or later
* Download the GNU Public License (GPL) from www.gnu.org
*/
#if !defined(_sb_term_h)
#define _sb_term_h
#if defined(__cplusplus)
extern "C" {
#endif
int term_init();
int term_restore();
int term_events();
int term_israw();
void term_getsdraw(char *dest, int pos, int tm);
void term_print(const char *str);
int term_getx();
int term_gety();
void term_setxy(int x, int y);
void term_settextcolor(int fg, int bg);
void term_cls();
void term_settab(int tabsize);
void term_drawpoint(int x, int y);
int term_getpoint(int x, int y);
void term_drawline(int x1, int y1, int x2, int y2);
void term_drawrect(int x1, int y1, int x2, int y2, int fill);
void term_setcursor(int style);
int term_rows();
int term_cols();
void term_recalc_size();
int term_getch(); // dev_getch() !!!
#if defined(__cplusplus)
}
#endif
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.