Useful functions of the libkorebot. More...
Go to the source code of this file.
Functions | |
int | kb_kbhit (void) |
void | kb_change_term_mode (int dir) |
void | kb_clrscr (void) |
void | kb_erase_line (int line) |
void | kb_move_cursor (int c, int l) |
void | kb_move_cursor_column (int c) |
void | kb_move_cursor_line (int l) |
Useful functions of the libkorebot.
Definition in file kb_utils.c.
void kb_change_term_mode | ( | int | dir | ) |
Change terminal mode for getchar to return immediately
dir | 1= mode changed to non-blocking, 0 mode reverted to previous |
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)
line | line |
Definition at line 118 of file kb_utils.c.
References kb_move_cursor().
Referenced by kb_stargazer_read_data(), lrfmeasure(), and main().
int kb_kbhit | ( | void | ) |
Test if anykey was pushed
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)
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
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
l | line |
Definition at line 150 of file kb_utils.c.