libcaca  0.99.beta19
About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).
  Fossies Dox: libcaca-0.99.beta19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

libcaca DOS conio.h compatibility layer

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

Functions

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

Detailed Description

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

Function Documentation

◆ caca_conio__setcursortype()

void caca_conio__setcursortype ( int  cur_t)

◆ caca_conio_cgets()

char* caca_conio_cgets ( char *  str)

DOS conio.h cgets() equivalent.

Definition at line 47 of file caca_conio.c.

References caca_conio_getch(), caca_gotoxy(), caca_put_char(), caca_wherex(), caca_wherey(), conio_init(), conio_refresh(), and cv.

◆ caca_conio_clreol()

void caca_conio_clreol ( void  )

DOS conio.h clreol() equivalent.

Definition at line 75 of file caca_conio.c.

References caca_fill_box, caca_get_canvas_width(), caca_wherex(), caca_wherey(), conio_init(), conio_refresh(), and cv.

◆ caca_conio_clrscr()

void caca_conio_clrscr ( void  )

DOS conio.h clrscr() equivalent.

Definition at line 87 of file caca_conio.c.

References caca_clear_canvas(), caca_gotoxy(), conio_init(), conio_refresh(), and cv.

◆ caca_conio_cprintf()

int caca_conio_cprintf ( const char *  format,
  ... 
)

DOS conio.h cprintf() equivalent.

Definition at line 99 of file caca_conio.c.

References caca_gotoxy(), caca_vprintf(), caca_wherex(), caca_wherey(), conio_init(), conio_refresh(), and cv.

◆ caca_conio_cputs()

int caca_conio_cputs ( const char *  str)

DOS conio.h cputs() equivalent.

Definition at line 119 of file caca_conio.c.

References caca_gotoxy(), caca_put_char(), caca_wherex(), caca_wherey(), conio_init(), conio_refresh(), and cv.

◆ caca_conio_cscanf()

int caca_conio_cscanf ( char *  format,
  ... 
)

DOS stdio.h cscanf() equivalent.

Definition at line 138 of file caca_conio.c.

References conio_init().

◆ caca_conio_delay()

void caca_conio_delay ( unsigned int  )

DOS dos.h delay() equivalent.

Definition at line 148 of file caca_conio.c.

References _caca_getticks(), _caca_sleep(), conio_init(), conio_refresh(), and timer.

◆ caca_conio_delline()

void caca_conio_delline ( void  )

DOS conio.h delline() equivalent.

Definition at line 172 of file caca_conio.c.

References conio_init().

◆ caca_conio_getch()

int caca_conio_getch ( void  )

◆ caca_conio_getche()

int caca_conio_getche ( void  )

DOS conio.h getche() equivalent.

Definition at line 212 of file caca_conio.c.

References caca_conio_getch(), and caca_conio_printf().

◆ caca_conio_getpass()

char* caca_conio_getpass ( const char *  prompt)

DOS conio.h getpass() equivalent.

Definition at line 223 of file caca_conio.c.

References caca_conio_getch(), conio_init(), conio_refresh(), and pass_buffer.

◆ caca_conio_gettext()

int caca_conio_gettext ( int  left,
int  top,
int  right,
int  bottom,
void *  destin 
)

DOS conio.h gettext() equivalent.

Definition at line 246 of file caca_conio.c.

References conio_init().

◆ caca_conio_gettextinfo()

void caca_conio_gettextinfo ( struct caca_conio_text_info r)

DOS conio.h gettextinfo() equivalent.

Definition at line 256 of file caca_conio.c.

References conio_init().

◆ caca_conio_gotoxy()

void caca_conio_gotoxy ( int  x,
int  y 
)

DOS conio.h gotoxy() equivalent.

Definition at line 264 of file caca_conio.c.

References caca_gotoxy(), conio_init(), conio_refresh(), cv, x, and y.

◆ caca_conio_highvideo()

void caca_conio_highvideo ( void  )

DOS conio.h highvideo() equivalent.

Definition at line 274 of file caca_conio.c.

References conio_init().

◆ caca_conio_insline()

void caca_conio_insline ( void  )

DOS conio.h insline() equivalent.

Definition at line 282 of file caca_conio.c.

References conio_init().

◆ caca_conio_kbhit()

int caca_conio_kbhit ( void  )

◆ caca_conio_lowvideo()

void caca_conio_lowvideo ( void  )

DOS conio.h lowvideo() equivalent.

Definition at line 324 of file caca_conio.c.

References conio_init().

◆ caca_conio_movetext()

int caca_conio_movetext ( int  left,
int  top,
int  right,
int  bottom,
int  destleft,
int  desttop 
)

DOS conio.h movetext() equivalent.

Definition at line 332 of file caca_conio.c.

References caca_blit(), caca_create_canvas(), caca_get_canvas_width(), conio_init(), conio_refresh(), and cv.

◆ caca_conio_normvideo()

void caca_conio_normvideo ( void  )

DOS conio.h normvideo() equivalent.

Definition at line 355 of file caca_conio.c.

References conio_init().

◆ caca_conio_nosound()

void caca_conio_nosound ( void  )

DOS dos.h nosound() equivalent.

Definition at line 363 of file caca_conio.c.

References conio_init().

◆ caca_conio_printf()

int caca_conio_printf ( const char *  format,
  ... 
)

DOS stdio.h printf() equivalent.

Definition at line 371 of file caca_conio.c.

References caca_gotoxy(), caca_vprintf(), caca_wherex(), caca_wherey(), conio_init(), conio_refresh(), and cv.

Referenced by caca_conio_getche().

◆ caca_conio_putch()

int caca_conio_putch ( int  ch)

DOS conio.h putch() equivalent.

Definition at line 390 of file caca_conio.c.

References caca_gotoxy(), caca_put_char(), caca_wherex(), caca_wherey(), conio_init(), and cv.

◆ caca_conio_puttext()

int caca_conio_puttext ( int  left,
int  top,
int  right,
int  bottom,
void *  destin 
)

DOS conio.h puttext() equivalent.

Definition at line 402 of file caca_conio.c.

References conio_init().

◆ caca_conio_sleep()

void caca_conio_sleep ( unsigned int  )

DOS dos.h sleep() equivalent.

Definition at line 431 of file caca_conio.c.

References _caca_getticks(), _caca_sleep(), conio_init(), conio_refresh(), and timer.

◆ caca_conio_sound()

void caca_conio_sound ( unsigned int  )

DOS dos.h sound() equivalent.

Definition at line 455 of file caca_conio.c.

References conio_init().

◆ caca_conio_textattr()

void caca_conio_textattr ( int  newattr)

DOS conio.h textattr() equivalent.

Definition at line 463 of file caca_conio.c.

References conio_init().

◆ caca_conio_textbackground()

void caca_conio_textbackground ( int  newcolor)

DOS conio.h textbackground() equivalent.

Definition at line 471 of file caca_conio.c.

References caca_attr_to_ansi_fg(), caca_get_attr(), caca_set_color_ansi(), conio_init(), and cv.

◆ caca_conio_textcolor()

void caca_conio_textcolor ( int  newcolor)

DOS conio.h textcolor() equivalent.

Definition at line 480 of file caca_conio.c.

References caca_attr_to_ansi_bg(), caca_get_attr(), caca_set_color_ansi(), conio_init(), and cv.

◆ caca_conio_textmode()

void caca_conio_textmode ( int  newmode)

DOS conio.h textmode() equivalent.

Definition at line 489 of file caca_conio.c.

References conio_init().

◆ caca_conio_ungetch()

int caca_conio_ungetch ( int  ch)

DOS conio.h ungetch() equivalent.

Definition at line 497 of file caca_conio.c.

References conio_init(), and unget_ch.

◆ caca_conio_wherex()

int caca_conio_wherex ( void  )

DOS conio.h wherex() equivalent.

Definition at line 510 of file caca_conio.c.

References caca_wherex(), conio_init(), and cv.

◆ caca_conio_wherey()

int caca_conio_wherey ( void  )

DOS conio.h wherey() equivalent.

Definition at line 518 of file caca_conio.c.

References caca_wherey(), conio_init(), and cv.

◆ caca_conio_window()

void caca_conio_window ( int  left,
int  top,
int  right,
int  bottom 
)

DOS conio.h window() equivalent.

Definition at line 526 of file caca_conio.c.

References conio_init().