kb_utils.h File Reference

Header of Useful functions of libkorebot. More...

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

Go to the source code of this file.

Functions

void kb_change_term_mode (int dir)
int kb_kbhit (void)
void kb_clrscr (void)
void kb_move_cursor (int c, int l)
void kb_move_cursor_column (int c)
void kb_move_cursor_line (int l)
void kb_erase_line (int line)

Detailed Description

Header of Useful functions of libkorebot.

Definition in file kb_utils.h.


Function Documentation

void kb_change_term_mode ( int  dir  ) 

Change terminal mode for getchar to return immediately

Parameters:
dir 1= mode changed to non-blocking, 0 mode reverted to previous
Returns:
none

Definition at line 85 of file kb_utils.c.

Referenced by lrfmeasure(), and main().

void kb_clrscr ( void   ) 

Clear the console screen

Definition at line 105 of file kb_utils.c.

Referenced by ambIR(), getallus(), lrfmeasure(), main(), and proxIR().

void kb_erase_line ( int  line  ) 

erase line (origin at 1,1)

Parameters:
line line

Definition at line 118 of file kb_utils.c.

References kb_move_cursor().

Referenced by kb_stargazer_read_data(), lrfmeasure(), and main().

Here is the call graph for this function:

int kb_kbhit ( void   ) 

Test if anykey was pushed

Returns:
-1 if error occured >=0 number of characters to read

Definition at line 52 of file kb_utils.c.

Referenced by ambIR(), braitenbergAvoidance(), getallus(), lrfmeasure(), main(), and proxIR().

void kb_move_cursor ( int  c,
int  l 
)

move cursor (origin at 1,1)

Parameters:
c column
l line

Definition at line 130 of file kb_utils.c.

Referenced by kb_erase_line(), lrfmeasure(), and main().

void kb_move_cursor_column ( int  c  ) 

move cursor column (origin at 1,1), keep line

Parameters:
c column

Definition at line 140 of file kb_utils.c.

void kb_move_cursor_line ( int  l  ) 

move cursor line (origin at 1,1), keep column

Parameters:
l line

Definition at line 150 of file kb_utils.c.

Generated on Mon Dec 3 09:43:48 2012 for KoreBot Library by  doxygen 1.6.3