FreeBASIC  0.91.0
fb_console.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  _fb_Rect
 
struct  _fb_Coord
 
struct  _fb_ConHooks
 

Typedefs

typedef struct _fb_Rect fb_Rect
 
typedef struct _fb_Coord fb_Coord
 
typedef void(* fb_fnHookConScroll )(struct _fb_ConHooks *handle, int x1, int y1, int x2, int y2, int rows)
 
typedef int(* fb_fnHookConWrite )(struct _fb_ConHooks *handle, const void *buffer, size_t length)
 
typedef struct _fb_ConHooks fb_ConHooks
 

Functions

static __inline__ int fb_hConCheckScroll (fb_ConHooks *handle)
 
void fb_ConPrintRaw (fb_ConHooks *handle, const char *pachText, size_t TextLength)
 
void fb_ConPrintRawWstr (fb_ConHooks *handle, const FB_WCHAR *pachText, size_t TextLength)
 
void fb_ConPrintTTY (fb_ConHooks *handle, const char *pachText, size_t TextLength, int is_text_mode)
 
void fb_ConPrintTTYWstr (fb_ConHooks *handle, const FB_WCHAR *pachText, size_t TextLength, int is_text_mode)
 
int fb_ConsoleWidth (int cols, int rows)
 
void fb_ConsoleClear (int mode)
 
int fb_ConsoleLocate (int row, int col, int cursor)
 
int fb_ConsoleGetY (void)
 
int fb_ConsoleGetX (void)
 
FBCALL void fb_ConsoleGetSize (int *cols, int *rows)
 
FBCALL void fb_ConsoleGetXY (int *col, int *row)
 
FBCALL unsigned int fb_ConsoleReadXY (int col, int row, int colorflag)
 
int fb_ConsoleColor (int fc, int bc, int flags)
 
int fb_ConsoleGetColorAtt (void)
 
FBCALL int fb_ConsoleView (int toprow, int botrow)
 
int fb_ConsoleViewEx (int toprow, int botrow, int set_cursor)
 
void fb_ConsoleGetView (int *toprow, int *botrow)
 
int fb_ConsoleGetMaxRow (void)
 
void fb_ConsoleViewUpdate (void)
 
void fb_ConsoleScroll (int nrows)
 
int fb_ConsoleGetkey (void)
 
FBSTRINGfb_ConsoleInkey (void)
 
int fb_ConsoleKeyHit (void)
 
int fb_ConsoleMultikey (int scancode)
 
int fb_ConsoleGetMouse (int *x, int *y, int *z, int *buttons_, int *clip)
 
int fb_ConsoleSetMouse (int x, int y, int cursor, int clip)
 
void fb_ConsolePrintBuffer (const char *buffer, int mask)
 
void fb_ConsolePrintBufferWstr (const FB_WCHAR *buffer, int mask)
 
void fb_ConsolePrintBufferEx (const void *buffer, size_t len, int mask)
 
void fb_ConsolePrintBufferWstrEx (const FB_WCHAR *buffer, size_t len, int mask)
 
char * fb_ConsoleReadStr (char *buffer, ssize_t len)
 
int fb_ConsoleGetTopRow (void)
 
int fb_ConsoleGetBotRow (void)
 
void fb_ConsoleSetTopBotRows (int top, int bot)
 
void fb_ConsoleSleep (int msecs)
 
int fb_ConsoleIsRedirected (int is_input)
 
int fb_ConsolePageCopy (int src, int dst)
 
int fb_ConsolePageSet (int active, int visible)
 
FBCALL FBSTRINGfb_ConReadLine (int soft_cursor)
 
FBCALL int fb_ConsoleInput (FBSTRING *text, int addquestion, int addnewline)
 
int fb_ConsoleLineInput (FBSTRING *text, void *dst, ssize_t dst_len, int fillrem, int addquestion, int addnewline)
 
int fb_ConsoleLineInputWstr (const FB_WCHAR *text, FB_WCHAR *dst, ssize_t max_chars, int addquestion, int addnewline)
 
int fb_hConsoleInputBufferChanged (void)
 

Typedef Documentation

typedef struct _fb_ConHooks fb_ConHooks
typedef struct _fb_Coord fb_Coord
typedef void(* fb_fnHookConScroll)(struct _fb_ConHooks *handle, int x1, int y1, int x2, int y2, int rows)

Definition at line 11 of file fb_console.h.

typedef int(* fb_fnHookConWrite)(struct _fb_ConHooks *handle, const void *buffer, size_t length)

Definition at line 12 of file fb_console.h.

typedef struct _fb_Rect fb_Rect

Function Documentation

void fb_ConPrintRaw ( fb_ConHooks handle,
const char *  pachText,
size_t  TextLength 
)
void fb_ConPrintRawWstr ( fb_ConHooks handle,
const FB_WCHAR pachText,
size_t  TextLength 
)
void fb_ConPrintTTY ( fb_ConHooks handle,
const char *  pachText,
size_t  TextLength,
int  is_text_mode 
)

Here is the caller graph for this function:

void fb_ConPrintTTYWstr ( fb_ConHooks handle,
const FB_WCHAR pachText,
size_t  TextLength,
int  is_text_mode 
)

Here is the caller graph for this function:

FBCALL FBSTRING* fb_ConReadLine ( int  soft_cursor)

Definition at line 47 of file con_readline.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_ConsoleClear ( int  mode)

Definition at line 7 of file io_cls.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleColor ( int  fc,
int  bc,
int  flags 
)

Definition at line 9 of file io_color.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetBotRow ( void  )

Definition at line 17 of file io_viewhlp.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetColorAtt ( void  )

Definition at line 24 of file io_color.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetkey ( void  )

Definition at line 20 of file io_inkey.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetMaxRow ( void  )

Definition at line 4 of file io_maxrow.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetMouse ( int *  x,
int *  y,
int *  z,
int *  buttons_,
int *  clip 
)

Definition at line 12 of file io_mouse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_ConsoleGetSize ( int *  cols,
int *  rows 
)

Definition at line 5 of file io_getsize.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetTopRow ( void  )

Definition at line 8 of file io_viewhlp.c.

Here is the caller graph for this function:

void fb_ConsoleGetView ( int *  toprow,
int *  botrow 
)

Definition at line 39 of file io_viewhlp.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetX ( void  )

Definition at line 4 of file io_getx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void fb_ConsoleGetXY ( int *  col,
int *  row 
)

Definition at line 27 of file io_getxy.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleGetY ( void  )

Definition at line 4 of file io_gety.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBSTRING* fb_ConsoleInkey ( void  )

Definition at line 7 of file io_inkey.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_ConsoleInput ( FBSTRING text,
int  addquestion,
int  addnewline 
)

Definition at line 5 of file con_input.c.

Here is the call graph for this function:

int fb_ConsoleIsRedirected ( int  is_input)

Definition at line 4 of file io_isredir.c.

Here is the caller graph for this function:

int fb_ConsoleKeyHit ( void  )

Definition at line 35 of file io_inkey.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleLineInput ( FBSTRING text,
void *  dst,
ssize_t  dst_len,
int  fillrem,
int  addquestion,
int  addnewline 
)

Definition at line 67 of file con_lineinp.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleLineInputWstr ( const FB_WCHAR text,
FB_WCHAR dst,
ssize_t  max_chars,
int  addquestion,
int  addnewline 
)

Definition at line 57 of file con_lineinp_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleLocate ( int  row,
int  col,
int  cursor 
)

Definition at line 71 of file io_locate.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleMultikey ( int  scancode)

Definition at line 189 of file io_multikey.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsolePageCopy ( int  src,
int  dst 
)

Definition at line 7 of file io_pcopy.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsolePageSet ( int  active,
int  visible 
)

Definition at line 7 of file io_pageset.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_ConsolePrintBuffer ( const char *  buffer,
int  mask 
)

Definition at line 209 of file io_printbuff.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_ConsolePrintBufferEx ( const void *  buffer,
size_t  len,
int  mask 
)

Definition at line 193 of file io_printbuff.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_ConsolePrintBufferWstr ( const FB_WCHAR buffer,
int  mask 
)

Definition at line 20 of file io_printbuff_wstr.c.

Here is the call graph for this function:

void fb_ConsolePrintBufferWstrEx ( const FB_WCHAR buffer,
size_t  len,
int  mask 
)

Definition at line 6 of file io_printbuff_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

char* fb_ConsoleReadStr ( char *  buffer,
ssize_t  len 
)

Definition at line 6 of file io_readstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL unsigned int fb_ConsoleReadXY ( int  col,
int  row,
int  colorflag 
)

Definition at line 26 of file io_readxy.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_ConsoleScroll ( int  nrows)

Definition at line 154 of file io_scroll.c.

Here is the call graph for this function:

int fb_ConsoleSetMouse ( int  x,
int  y,
int  cursor,
int  clip 
)

Definition at line 48 of file io_mouse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_ConsoleSetTopBotRows ( int  top,
int  bot 
)

Definition at line 32 of file io_viewhlp.c.

Here is the caller graph for this function:

void fb_ConsoleSleep ( int  msecs)

Definition at line 5 of file time_sleep.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL int fb_ConsoleView ( int  toprow,
int  botrow 
)

Definition at line 59 of file io_view.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleViewEx ( int  toprow,
int  botrow,
int  set_cursor 
)

Definition at line 6 of file io_view.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_ConsoleViewUpdate ( void  )

Definition at line 6 of file io_viewupdate.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_ConsoleWidth ( int  cols,
int  rows 
)

Definition at line 8 of file io_width.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static __inline__ int fb_hConCheckScroll ( fb_ConHooks handle)
static

Definition at line 25 of file fb_console.h.

Here is the caller graph for this function:

int fb_hConsoleInputBufferChanged ( void  )

Definition at line 11 of file io_input.c.

Here is the call graph for this function:

Here is the caller graph for this function: