libcaca DOS conio.h compatibility layer
libcaca attribute definitions » libcaca basic functions » libcaca canvas drawing » libcaca dirty rectangle manipulation » libcaca canvas transformation » libcaca attribute conversions » libcaca character set conversions » libcaca primitives drawing » libcaca canvas frame handling » libcaca bitmap dithering » libcaca character font handling » libcaca bitmap font handling » libcaca FIGfont handling » libcaca file IO » libcaca importers/exporters from/to various » libcaca display functions » libcaca event handling » libcaca process management

## Functions

__extern char * | caca_conio_cgets (char *str)
| DOS conio.h cgets() equivalent.
__extern void | caca_conio_clreol (void)
| DOS conio.h clreol() equivalent.
__extern void | caca_conio_clrscr (void)
| DOS conio.h clrscr() equivalent.
__extern int | caca_conio_cprintf (const char *format,...)
| DOS conio.h cprintf() equivalent.
__extern int | caca_conio_cputs (const char *str)
| DOS conio.h cputs() equivalent.
__extern int | caca_conio_cscanf (char *format,...)
| DOS stdio.h cscanf() equivalent.
__extern void | caca_conio_delay (unsigned int)
| DOS dos.h delay() equivalent.
__extern void | caca_conio_delline (void)
| DOS conio.h delline() equivalent.
__extern int | caca_conio_getch (void)
| DOS conio.h getch() equivalent.
__extern int | caca_conio_getche (void)
| DOS conio.h getche() equivalent.
__extern char * | caca_conio_getpass (const char *prompt)
| DOS conio.h getpass() equivalent.
__extern int | caca_conio_gettext (int left, int top, int right, int bottom, void *destin)
| DOS conio.h gettext() equivalent.
__extern void | caca_conio_gettextinfo (struct caca_conio_text_info *r)
| DOS conio.h gettextinfo() equivalent.
__extern void | caca_conio_gotoxy (int x, int y)
| DOS conio.h gotoxy() equivalent.
__extern void | caca_conio_highvideo (void)
| DOS conio.h highvideo() equivalent.
__extern void | caca_conio_insline (void)
| DOS conio.h insline() equivalent.
__extern int | caca_conio_kbhit (void)
| DOS conio.h kbhit() equivalent.
__extern void | caca_conio_lowvideo (void)
| DOS conio.h lowvideo() equivalent.
__extern int | caca_conio_movetext (int left, int top, int right, int bottom, int destleft, int desttop)
| DOS conio.h movetext() equivalent.
__extern void | caca_conio_normvideo (void)
| DOS conio.h normvideo() equivalent.
__extern void | caca_conio_nosound (void)
| DOS dos.h nosound() equivalent.
__extern int | caca_conio_printf (const char *format,...)
| DOS stdio.h printf() equivalent.
__extern int | caca_conio_putch (int ch)
| DOS conio.h putch() equivalent.
__extern int | caca_conio_puttext (int left, int top, int right, int bottom, void *destin)
| DOS conio.h puttext() equivalent.
__extern void | caca_conio__setcursortype (int cur_t)
| DOS conio.h _setcursortype() equivalent.
__extern void | caca_conio_sleep (unsigned int)
| DOS dos.h sleep() equivalent.
__extern void | caca_conio_sound (unsigned int)
| DOS dos.h sound() equivalent.
__extern void | caca_conio_textattr (int newattr)
| DOS conio.h textattr() equivalent.
__extern void | caca_conio_textbackground (int newcolor)
| DOS conio.h textbackground() equivalent.
__extern void | caca_conio_textcolor (int newcolor)
| DOS conio.h textcolor() equivalent.
__extern void | caca_conio_textmode (int newmode)
| DOS conio.h textmode() equivalent.
__extern int | caca_conio_ungetch (int ch)
| DOS conio.h ungetch() equivalent.
__extern int | caca_conio_wherex (void)
| DOS conio.h wherex() equivalent.
__extern int | caca_conio_wherey (void)
| DOS conio.h wherey() equivalent.
__extern void | caca_conio_window (int left, int top, int right, int bottom)
| DOS conio.h window() equivalent.

## Variables

enum caca_event_type | caca_event::type
int caca_event::x |
int caca_event::y |
int caca_event::button |
struct { |
int x |
int y |
int button |
} caca_event::mouse |
int caca_event::w |
int caca_event::h |
struct { |
int w |
int h |
} caca_event::resize |
int caca_event::ch |
uint32_t caca_event::utf32 |
char caca_event::utf8 [8] |
struct { |
int ch |
uint32_t utf32 |
char utf8 [8] |
} caca_event::key |
union { |
struct { |
int x |
int y |
int button |
} mouse |
struct { |
int w |
int h |
} resize |
struct { |
int ch |
uint32_t utf32 |
char utf8 [8] |
} key |
} | caca_event::data |
char const * | caca_option::name
int | caca_option::has_arg
int * | caca_option::flag
int | caca_option::val
unsigned char | caca_conio_text_info::winleft
unsigned char | caca_conio_text_info::wintop
unsigned char | caca_conio_text_info::winright
unsigned char | caca_conio_text_info::winbottom
unsigned char | caca_conio_text_info::attribute
unsigned char | caca_conio_text_info::normattr
unsigned char | caca_conio_text_info::currmode
unsigned char | caca_conio_text_info::screenheight
unsigned char | caca_conio_text_info::screenwidth
unsigned char | caca_conio_text_info::curx
unsigned char | caca_conio_text_info::cury

## Detailed Description

These functions implement DOS-like functions for high-level text operations.

## Variable Documentation

## type

enum caca_event_type caca_event::type

The event type.

## [union]

union { ... } caca_event::data

The event information data

## winleft

unsigned char caca_conio_text_info::winleft

left window coordinate

## wintop

unsigned char caca_conio_text_info::wintop

top window coordinate

## winright

unsigned char caca_conio_text_info::winright

right window coordinate

## winbottom

unsigned char caca_conio_text_info::winbottom

bottom window coordinate

## attribute

unsigned char caca_conio_text_info::attribute

text attribute

## normattr

unsigned char caca_conio_text_info::normattr

normal attribute

## currmode

unsigned char caca_conio_text_info::currmode

current video mode: BW40, BW80, C40, C80, or C4350

## screenheight

unsigned char caca_conio_text_info::screenheight

text screen's height

## screenwidth

unsigned char caca_conio_text_info::screenwidth

text screen's width

## curx

unsigned char caca_conio_text_info::curx

x-coordinate in current window

## cury

unsigned char caca_conio_text_info::cury

y-coordinate in current window