CONIO Reference Manual: Tue Aug 3 02:07:03 2004
CONIO Reference Manual: Tue Aug 3 02:07:03 2004
CONIO Reference Manual: Tue Aug 3 02:07:03 2004
Contents
1 2 CONIO Main Page CONIO Namespace Index 2.1 3 CONIO Namespace List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 3 5 5 7 7 9 9 13 13 14 15 15 23
CONIO Data Structure Documentation 6.1 6.2 char_info Struct Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . text_info Struct Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CONIO File Documentation 7.1 7.2 conio2.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . constream File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 1
Author: Hongli Lai <hongli@telekabel.nl> tkorrovi <tkorrovi@altavista.net> on 2002/02/26. Andrew Westcott <ajwestco@users.sourceforge.net> Michal Molhanec <michal@molhanec.net>
2 Version: 2.0
Chapter 2
Here is a list of all documented namespaces with brief descriptions: conio (This namespace contain all C++ specic things ) . . . . . . . . . . . . . . . . . . . . . .
Chapter 3
Here are the data structures with brief descriptions: char_info (Structure used by gettext/puttext ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . text_info (Structure holding information about screen ) . . . . . . . . . . . . . . . . . . . . . .
Chapter 4
Here is a list of all documented les with brief descriptions: conio2.h (A conio implementation for Mingw/Dev-C++ ) . . . . . . . . . . . . . . . . . . . . . constream (A constream implementation for Mingw/Dev-C++ ) . . . . . . . . . . . . . . . . . .
Chapter 5
Functions
_Setxy setxy (int x, int y)
setxy manipulator
10
normvideo manipulator
5.1.1
Detailed Description
5.1.2
5.1.2.1
Function Documentation
std::ostream& clreol (std::ostream & o) [inline]
5.1.2.2
5.1.2.3
5.1.2.4
11
5.1.2.6
5.1.2.7
5.1.2.8
5.1.2.9
5.1.2.10
5.1.2.12
Chapter 6
Data Fields
char letter
character value
6.1.1
Detailed Description
Structure used by gettext/puttext. See also: _conio_gettext puttext The documentation for this struct was generated from the following le: conio2.h
14
6.2
Data Fields
unsigned char curx
cursor coordinate x
6.2.1
Detailed Description
6.2.2
6.2.2.1
Field Documentation
unsigned short text_info::normattr
original value of text attribute after start of the application If you dont called the inittextinfo on the beginning of the application, this always will be black background and light gray foreground The documentation for this struct was generated from the following le: conio2.h
Chapter 7
Data Structures
struct text_info
Structure holding information about screen.
struct char_info
Structure used by gettext/puttext.
Cursor types
Predened cursor types. #dene _NOCURSOR 0
no cursor
#dene _NORMALCURSOR 20
cursor lling 20 percent of cell height
Denes
#dene gettext _conio_gettext
Dene alias for _conio_gettext.
16
Enumerations
enum COLORS { BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY, DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW, WHITE }
Colors which you can use in your application.
Functions
void gettextinfo (struct text_info info)
Returns information of the screen.
void _conio_gettext (int left, int top, int right, int bottom, struct char_info buf)
Gets text from the screen.
void puttext (int left, int top, int right, int bottom, struct char_info buf)
Puts text back to the screen.
void movetext (int left, int top, int right, int bottom, int destleft, int desttop)
Copies text.
17
7.1.1
Detailed Description
A conio implementation for Mingw/Dev-C++. Written by: Hongli Lai <hongli@telekabel.nl> tkorrovi <tkorrovi@altavista.net> on 2002/02/26. Andrew Westcott <ajwestco@users.sourceforge.net> Michal Molhanec <michal@molhanec.net> Offered for use in the public domain without any warranty.
7.1.2
7.1.2.1
Dene Documentation
#dene gettext _conio_gettext
Dene alias for _conio_gettext. If you want to use gettext function from some other library (e.g. GNU gettext) you have to dene _CONIO_NO_GETTEXT_ so you wont get name conict.
Generated on Tue Aug 3 02:07:03 2004 for CONIO by Doxygen
18
7.1.3
7.1.3.1
Colors which you can use in your application. Enumeration values: BLACK black color BLUE blue color GREEN green color CYAN cyan color RED red color MAGENTA magenta color BROWN brown color LIGHTGRAY light gray color DARKGRAY dark gray color LIGHTBLUE light blue color LIGHTGREEN light green color LIGHTCYAN light cyan color LIGHTRED light red color LIGHTMAGENTA light magenta color YELLOW yellow color WHITE white color
7.1.4
7.1.4.1
Function Documentation
void _conio_gettext (int left, int top, int right, int bottom, struct char_info buf)
Gets text from the screen. If you havent dened _CONIO_NO_GETTEXT_ prior to including conio2.h you can use this function also under the gettext name. See also: char_info puttext Parameters: left Left coordinate of the rectangle, inclusive, starting from 1. top Top coordinate of the rectangle, inclusive, starting from 1. right Right coordinate of the rectangle, inclusive, starting from 1. bottom Bottom coordinate of the rectangle, inclusive, starting from 1. buf You have to pass buffer of size (right - left + 1) (bottom - top + 1) sizeof(char_info).
19
Sets the cursor type. See also: cursortypes Parameters: type cursor type, under Win32 it is height of the cursor in percents
7.1.4.3
Puts string at the specied position. Parameters: x horizontal position y vertical position str string
7.1.4.4
Delete the current line (line on which is cursor) and then moves all lines below one line up. Lines below the line are moved one line up. 7.1.4.5 char getpass (const char prompt, char str)
Reads password. This function behaves like cgets. See also: cgets Parameters: prompt prompt which will be displayed to user str string for the password. str[0] have to contain length of the str - 3 Returns: &str[2], the password will be stored in str beginning at str[2], in str[1] will be length of the string without \0, at str[2 + str[1]] will be \0.
7.1.4.6
Moves cursor to the specied position. Parameters: x horizontal position y vertical position
7.1.4.8
Makes foreground colors light. If the current foreground color is less than DARKGRAY adds 8 to the its value making dark colors light. See also: COLORS lowvideo
7.1.4.9
Call this if you need real value of normattr attribute in the text_info structure. See also: text_info
7.1.4.10
Insert blank line at the cursor position. Original content of the line and content of lines below moves one line down. The last line is deleted. 7.1.4.11 void lowvideo (void)
Makes foreground colors dark. If the current foreground color is higher than LIGHTGRAY substracts 8 from its value making light colors dark. See also: COLORS highvideo
7.1.4.12
void movetext (int left, int top, int right, int bottom, int destleft, int desttop)
Copies text. Parameters: left Left coordinate of the rectangle, inclusive, starting from 1.
Generated on Tue Aug 3 02:07:03 2004 for CONIO by Doxygen
7.1 conio2.h File Reference top Top coordinate of the rectangle, inclusive, starting from 1. right Right coordinate of the rectangle, inclusive, starting from 1. bottom Bottom coordinate of the rectangle, inclusive, starting from 1. destleft Left coordinate of the destination rectangle. desttop Top coordinate of the destination rectangle.
21
7.1.4.13
Sets text attribute back to value it had after program start. It uses text_infos normattr value. See also: text_info
7.1.4.14
Puts char at the specied position. Parameters: x horizontal position y vertical position ch char
7.1.4.15
void puttext (int left, int top, int right, int bottom, struct char_info buf)
Puts text back to the screen. See also: char_info _conio_gettext Parameters: left Left coordinate of the rectangle, inclusive, starting from 1. top Top coordinate of the rectangle, inclusive, starting from 1. right Right coordinate of the rectangle, inclusive, starting from 1. bottom Bottom coordinate of the rectangle, inclusive, starting from 1. buf You have to pass buffer of size (right - left + 1) (bottom - top + 1) sizeof(char_info).
7.1.4.16
Sets text background color. See also: COLORS Parameters: color new background color
7.1.4.18
Sets text foreground color. See also: COLORS Parameters: color new foreground color
7.1.4.19
7.1.4.20
23
7.2
Namespaces
namespace conio
Functions
_Setxy setxy (int x, int y)
setxy manipulator
24
7.2.1
Detailed Description
A constream implementation for Mingw/Dev-C++. Warning: There is not implemented constream class, only manipulators for iostream, so use them on cin/cout. Author: Michal Molhanec <michal@molhanec.net> Offered for use in the public domain without any warranty.
7.2.2
7.2.2.1
Function Documentation
std::ostream& clreol (std::ostream & o) [inline]
7.2.2.2
7.2.2.3
7.2.2.4
7.2.2.5
7.2 constream File Reference 7.2.2.6 std::ostream& lowvideo (std::ostream & o) [inline]
25
7.2.2.7
7.2.2.8
7.2.2.9
7.2.2.10
7.2.2.11
7.2.2.12
Index
_conio_gettext conio2.h, 18 _setcursortype conio2.h, 18 BLACK conio2.h, 18 BLUE conio2.h, 18 BROWN conio2.h, 18 char_info, 13 clreol conio, 10 constream, 24 clrscr conio, 10 constream, 24 COLORS conio2.h, 18 conio, 9 clreol, 10 clrscr, 10 delline, 10 highvideo, 10 insline, 10 lowvideo, 11 normvideo, 11 setattr, 11 setbk, 11 setclr, 11 setcrsrtype, 11 setxy, 12 conio2.h, 15 _conio_gettext, 18 _setcursortype, 18 BLACK, 18 BLUE, 18 BROWN, 18 COLORS, 18 cputsxy, 19 CYAN, 18 DARKGRAY, 18 delline, 19 getpass, 19 gettext, 17 gettextinfo, 19 gotoxy, 19 GREEN, 18 highvideo, 20 inittextinfo, 20 insline, 20 LIGHTBLUE, 18 LIGHTCYAN, 18 LIGHTGRAY, 18 LIGHTGREEN, 18 LIGHTMAGENTA, 18 LIGHTRED, 18 lowvideo, 20 MAGENTA, 18 movetext, 20 normvideo, 21 putchxy, 21 puttext, 21 RED, 18 textattr, 21 textbackground, 21 textcolor, 22 wherex, 22 wherey, 22 WHITE, 18 YELLOW, 18 constream, 23 clreol, 24 clrscr, 24 delline, 24 highvideo, 24 insline, 24 lowvideo, 24 normvideo, 25 setattr, 25 setbk, 25 setclr, 25 setcrsrtype, 25 setxy, 25 cputsxy conio2.h, 19 CYAN conio2.h, 18
INDEX DARKGRAY conio2.h, 18 delline conio, 10 conio2.h, 19 constream, 24 getpass conio2.h, 19 gettext conio2.h, 17 gettextinfo conio2.h, 19 gotoxy conio2.h, 19 GREEN conio2.h, 18 highvideo conio, 10 conio2.h, 20 constream, 24 inittextinfo conio2.h, 20 insline conio, 10 conio2.h, 20 constream, 24 LIGHTBLUE conio2.h, 18 LIGHTCYAN conio2.h, 18 LIGHTGRAY conio2.h, 18 LIGHTGREEN conio2.h, 18 LIGHTMAGENTA conio2.h, 18 LIGHTRED conio2.h, 18 lowvideo conio, 11 conio2.h, 20 constream, 24 MAGENTA conio2.h, 18 movetext conio2.h, 20 normattr text_info, 14 normvideo
Generated on Tue Aug 3 02:07:03 2004 for CONIO by Doxygen
27 conio, 11 conio2.h, 21 constream, 25 putchxy conio2.h, 21 puttext conio2.h, 21 RED conio2.h, 18 setattr conio, 11 constream, 25 setbk conio, 11 constream, 25 setclr conio, 11 constream, 25 setcrsrtype conio, 11 constream, 25 setxy conio, 12 constream, 25 text_info, 14 normattr, 14 textattr conio2.h, 21 textbackground conio2.h, 21 textcolor conio2.h, 22 wherex conio2.h, 22 wherey conio2.h, 22 WHITE conio2.h, 18 YELLOW conio2.h, 18