E:/Projects/AvrLib/include/TERMLIB.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SBUF

Defines

#define BLACK   0
#define RED   1
#define GREEN   2
#define YELLOW   3
#define BLUE   4
#define VIOLET   5
#define CYAN   6
#define WHITE   7
#define FGND(color)   ((color) << 3)
#define BGND(color)   ((color))
#define NORMAL   (FGND(WHITE) | BGND(BLACK))
#define UNDERLINED   (FGND(BLUE) | BGND(BLACK))
#define REVERSE   (FGND(BLACK) | BGND(WHITE))
#define BLINKING   0x80
#define BOLD   0x08
#define IMALLOC   malloc
#define IFREE   free

Typedefs

typedef unsigned int WORD
typedef WORDIMAGEP

Functions

int vb_iscolor (void)
void vb_getyx (int *yp, int *xp)
void vb_putc (int c, int attrib)
void vb_puts (char *str, int move_cur)
int vb_getchar (void)
SBUFvb_save (int l, int r, int t, int b)
SBUFvb_restore (SBUF *sbuf)
void vb_freesbuf (SBUF *sbuf)
int _Vbios (int service, int al, int bx, int cx, int dx, char *return_this)
int dv_init (void)
void dv_scroll_line (int x_left, int x_right, int y_top, int y_bottom, int dir, int attrib)
void dv_scroll (int x_left, int x_right, int y_top, int y_bottom, int amt, int attrib)
void dv_clrs (int attrib)
void dv_clr_region (int l, int r, int t, int b, int attrib)
void dv_ctoyx (int y, int x)
void dv_getyx (int *rowp, int *colp)
void dv_putc (int c, int attrib)
void dv_putchar (int c)
void dv_puts (char *str, int move_cur)
void dv_putsa (char *str, int attrib)
int dv_incha (void)
void dv_outcha (int c)
void dv_replace (int c)
void dv_printf (int attribute, char *fmt,...)
SBUFdv_save (int l, int r, int t, int b)
SBUFdv_restore (SBUF *sbuf)
void dv_freesbuf (SBUF *sbuf)
void dv_screen_attrib (int *nCols, int *nRows)
void dv_putcyx (int y, int x, int c, int a)


Define Documentation

#define BGND ( color   )     ((color))

Definition at line 19 of file TERMLIB.h.

#define BLACK   0

Definition at line 9 of file TERMLIB.h.

#define BLINKING   0x80

Definition at line 25 of file TERMLIB.h.

#define BLUE   4

Definition at line 13 of file TERMLIB.h.

#define BOLD   0x08

Definition at line 26 of file TERMLIB.h.

#define CYAN   6

Definition at line 15 of file TERMLIB.h.

#define FGND ( color   )     ((color) << 3)

Definition at line 18 of file TERMLIB.h.

#define GREEN   2

Definition at line 11 of file TERMLIB.h.

#define IFREE   free

Definition at line 33 of file TERMLIB.h.

Referenced by dv_freesbuf().

#define IMALLOC   malloc

Definition at line 32 of file TERMLIB.h.

Referenced by dv_save().

#define NORMAL   (FGND(WHITE) | BGND(BLACK))

Definition at line 21 of file TERMLIB.h.

Referenced by dv_putc(), and outc().

#define RED   1

Definition at line 10 of file TERMLIB.h.

#define REVERSE   (FGND(BLACK) | BGND(WHITE))

Definition at line 23 of file TERMLIB.h.

#define UNDERLINED   (FGND(BLUE) | BGND(BLACK))

Definition at line 22 of file TERMLIB.h.

#define VIOLET   5

Definition at line 14 of file TERMLIB.h.

#define WHITE   7

Definition at line 16 of file TERMLIB.h.

#define YELLOW   3

Definition at line 12 of file TERMLIB.h.


Typedef Documentation

typedef WORD* IMAGEP

Definition at line 31 of file TERMLIB.h.

typedef unsigned int WORD

Definition at line 29 of file TERMLIB.h.


Function Documentation

int _Vbios ( int  service,
int  al,
int  bx,
int  cx,
int  dx,
char *  return_this 
)

void dv_clr_region ( int  l,
int  r,
int  t,
int  b,
int  attrib 
)

Definition at line 4 of file DV_CLR_R.c.

References SCREEN.

Referenced by clr_region().

void dv_clrs ( int  attrib  ) 

Definition at line 4 of file DV_CLRS.c.

References dv_Screen, NUMCOLS, and NUMROWS.

Referenced by dv_putc().

void dv_ctoyx ( int  y,
int  x 
)

Definition at line 80 of file DV_PUTC.c.

References Col, fix_cur, and Row.

void dv_freesbuf ( SBUF sbuf  ) 

Definition at line 6 of file DV_FREES.c.

References free, IFREE, and SBUF::image.

Referenced by freescr().

void dv_getyx ( int *  rowp,
int *  colp 
)

Definition at line 90 of file DV_PUTC.c.

References Col, and Row.

int dv_incha ( void   ) 

Definition at line 98 of file DV_PUTC.c.

References Col, Row, and VSCREEN.

Referenced by incha(), and inchar().

int dv_init ( void   ) 

Definition at line 5 of file DV_INIT.c.

References dv_Screen, and MONBASE.

Referenced by init().

void dv_outcha ( int  c  ) 

Definition at line 103 of file DV_PUTC.c.

References Col, Row, and VSCREEN.

void dv_printf ( int  attribute,
char *  fmt,
  ... 
)

void dv_putc ( int  c,
int  attrib 
)

Definition at line 20 of file DV_PUTC.c.

References Col, dv_clrs(), dv_scroll_line(), fix_cur, NORMAL, NUMCOLS, NUMROWS, Row, and SCREEN.

void dv_putchar ( int  c  ) 

void dv_putcyx ( int  y,
int  x,
int  c,
int  a 
)

Definition at line 113 of file DV_PUTC.c.

References SCREEN.

void dv_puts ( char *  str,
int  move_cur 
)

void dv_putsa ( char *  str,
int  attrib 
)

void dv_replace ( int  c  ) 

Definition at line 108 of file DV_PUTC.c.

References Col, Row, and SCREEN.

SBUF* dv_restore ( SBUF sbuf  ) 

Definition at line 6 of file DV_RESTO.c.

References SBUF::bottom, SBUF::image, SBUF::left, SBUF::right, SBUF::top, and VSCREEN.

Referenced by restore().

SBUF* dv_save ( int  l,
int  r,
int  t,
int  b 
)

Definition at line 7 of file DV_SAVE.c.

References SBUF::bottom, SBUF::image, IMALLOC, SBUF::left, malloc, SBUF::right, SBUF::top, and VSCREEN.

Referenced by savescr().

void dv_screen_attrib ( int *  nCols,
int *  nRows 
)

Definition at line 11 of file DV_INIT.c.

References NUMCOLS, and NUMROWS.

Referenced by DisplayAttrib().

void dv_scroll ( int  x_left,
int  x_right,
int  y_top,
int  y_bottom,
int  amt,
int  attrib 
)

Definition at line 129 of file DV_SCROL.c.

References dv_scroll_line().

Referenced by doscroll().

void dv_scroll_line ( int  x_left,
int  x_right,
int  y_top,
int  y_bottom,
int  dir,
int  attrib 
)

Definition at line 85 of file DV_SCROL.c.

References clr_col(), clr_row(), cpy_col(), and cpy_row().

Referenced by dv_putc(), dv_scroll(), and outc().

void vb_freesbuf ( SBUF sbuf  ) 

int vb_getchar ( void   ) 

void vb_getyx ( int *  yp,
int *  xp 
)

int vb_iscolor ( void   ) 

void vb_putc ( int  c,
int  attrib 
)

void vb_puts ( char *  str,
int  move_cur 
)

SBUF* vb_restore ( SBUF sbuf  ) 

SBUF* vb_save ( int  l,
int  r,
int  t,
int  b 
)


Generated on Sun Aug 31 13:30:52 2008 for FrankenRTOS by  doxygen 1.5.6