forked from ThomasMertes/seed7
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcon_drv.h
More file actions
71 lines (66 loc) · 3.22 KB
/
con_drv.h
File metadata and controls
71 lines (66 loc) · 3.22 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/********************************************************************/
/* */
/* con_drv.h Prototypes for console access functions. */
/* Copyright (C) 1989 - 2005 Thomas Mertes */
/* */
/* This file is part of the Seed7 Runtime Library. */
/* */
/* The Seed7 Runtime Library is free software; you can */
/* redistribute it and/or modify it under the terms of the GNU */
/* Lesser General Public License as published by the Free Software */
/* Foundation; either version 2.1 of the License, or (at your */
/* option) any later version. */
/* */
/* The Seed7 Runtime Library is distributed in the hope that it */
/* will be useful, but WITHOUT ANY WARRANTY; without even the */
/* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
/* PURPOSE. See the GNU Lesser General Public License for more */
/* details. */
/* */
/* You should have received a copy of the GNU Lesser General */
/* Public License along with this program; if not, write to the */
/* Free Software Foundation, Inc., 51 Franklin Street, */
/* Fifth Floor, Boston, MA 02110-1301, USA. */
/* */
/* Module: Seed7 Runtime Library */
/* File: seed7/src/con_drv.h */
/* Changes: 1990, 1991, 1992, 1993, 1994, 2005 Thomas Mertes */
/* Content: Prototypes for console access functions. */
/* */
/********************************************************************/
#define black 0
#define green 2
#define lightgray 7
#define darkgray 8
#define yellow 14
#define white 15
#ifdef CONSOLE_WCHAR
typedef utf16striType console_striType;
#else
typedef ustriType console_striType;
#endif
int conHeight (void);
int conWidth (void);
void conFlush (void);
void conCursor (boolType on);
void conSetCursor (intType lin, intType col);
#ifdef CONSOLE_USES_CON_TEXT
void conText (intType lin, intType col, console_striType stri,
memSizeType length);
#else
intType conColumn (void);
intType conLine (void);
void conWrite (const const_striType stri);
#endif
void conClear (intType startlin, intType startcol,
intType stoplin, intType stopcol);
void conUpScroll (intType startlin, intType startcol,
intType stoplin, intType stopcol, intType numLines);
void conDownScroll (intType startlin, intType startcol,
intType stoplin, intType stopcol, intType numLines);
void conLeftScroll (intType startlin, intType startcol,
intType stoplin, intType stopcol, intType numCols);
void conRightScroll (intType startlin, intType startcol,
intType stoplin, intType stopcol, intType numCols);
void conShut (void);
int conOpen (void);