#include <conio.h>
Data Structures | |
| struct | text_info |
| Structure holding information about screen. More... | |
| struct | char_info |
| Structure used by gettext/puttext. More... | |
Cursor types | |
| Predefined cursor types. | |
| #define | _NOCURSOR 0 |
| no cursor | |
| #define | _SOLIDCURSOR 100 |
| cursor filling whole cell | |
| #define | _NORMALCURSOR 20 |
| cursor filling 20 percent of cell height | |
Defines | |
| #define | gettext _conio_gettext |
| Define alias for _conio_gettext. | |
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. More... | |
Functions | |
| void | gettextinfo (struct text_info *info) |
| Returns information of the screen. | |
| void | inittextinfo (void) |
| Call this if you need real value of normattr attribute in the text_info structure. | |
| void | clreol (void) |
| Clears rest of the line from cursor position to the end of line without moving the cursor. | |
| void | clrscr (void) |
| Clears whole screen. | |
| void | delline (void) |
| Delete the current line (line on which is cursor) and then moves all lines below one line up. | |
| void | insline (void) |
| Insert blank line at the cursor position. | |
| 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. | |
| void | gotoxy (int x, int y) |
| Moves cursor to the specified position. | |
| void | cputsxy (int x, int y, char *str) |
| Puts string at the specified position. | |
| void | putchxy (int x, int y, char ch) |
| Puts char at the specified position. | |
| void | _setcursortype (int type) |
| Sets the cursor type. | |
| void | textattr (int _attr) |
| Sets attribute of text. | |
| void | normvideo (void) |
| Sets text attribute back to value it had after program start. | |
| void | textbackground (int color) |
| Sets text background color. | |
| void | textcolor (int color) |
| Sets text foreground color. | |
| int | wherex (void) |
| Reads the cursor X position. | |
| int | wherey (void) |
| Reads the cursor Y position. | |
| char * | getpass (const char *prompt, char *str) |
| Reads password. | |
| void | highvideo (void) |
| Makes foreground colors light. | |
| void | lowvideo (void) |
| Makes foreground colors dark. | |
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.
|
|
Define alias for _conio_gettext. If you want to use gettext function from some other library (e.g. GNU gettext) you have to define _CONIO_NO_GETTEXT_ so you won't get name conflict. |
|
|
||||||||||||||||||||||||
|
Gets text from the screen.
If you haven't defined
|
|
|
Sets the cursor type.
|
|
||||||||||||||||
|
Puts string at the specified position.
|
|
|
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. |
|
||||||||||||
|
Reads password. This function behaves like cgets.
|
|
|
Returns information of the screen.
|
|
||||||||||||
|
Moves cursor to the specified position.
|
|
|
Makes foreground colors light.
If the current foreground color is less than |
|
|
Call this if you need real value of normattr attribute in the text_info structure.
|
|
|
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. |
|
|
Makes foreground colors dark.
If the current foreground color is higher than |
|
||||||||||||||||||||||||||||
|
Copies text.
|
|
|
Sets text attribute back to value it had after program start. It uses text_info's normattr value.
|
|
||||||||||||||||
|
Puts char at the specified position.
|
|
||||||||||||||||||||||||
|
Puts text back to the screen.
|
|
|
Sets attribute of text.
|
|
|
Sets text background color.
|
|
|
Sets text foreground color.
|
|
|
Reads the cursor X position.
|
|
|
Reads the cursor Y position.
|
1.3.8