Koala Library
|
00001 //--------------------------------------------------------------------------------// 00002 //- KOALA( Koala extension board ) -// 00003 // -// 00004 //- Copyright (C) Julien Tharin, K-Team S.A. 2013 -// 00005 //- This library is free software; you can redistribute it and/or -// 00006 //- modify it under the terms of the GNU Lesser General Public -// 00007 //- License as published by the Free Software Foundation; either -// 00008 //- version 2.1 of the License, or any later version. -// 00009 //- -// 00010 //- This library is distributed in the hope that it will be useful, -// 00011 //- but WITHOUT ANY WARRANTY; without even the implied warranty of -// 00012 //- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// 00013 //- Lesser General Public License for more details. -// 00014 //- -// 00015 //- You should have received a copy of the GNU Lesser General Public -// 00016 //- License along with this library; if not, write to the Free Software -// 00017 //- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// 00018 //- -// 00019 //- __ __ ________ -// 00020 //- K-Team S.A. | |/ /|__ __|___ _____ ___ ___ -// 00021 //- Chemin des Plans-Praz 28, | / __ | | _____|/ _ \| \/ | -// 00022 //- 1337 Vallorbe | | \ | | ____|/ /_\ | | -// 00023 //- Switzerland |__|\__\ |__|______|_/ \_|__|\/|__| -// 00024 //- jtharin@k-team.com tel:+41 24 423 89 56 fax:+41 24 423 8960 -// 00025 //- -// 00026 //--------------------------------------------------------------------------------// 00027 00029 00032 00033 00034 #ifndef __koala_utils__ 00035 #define __koala_utils__ 00036 00037 #include <time.h> 00038 #include <sys/time.h> 00039 00040 /* ---- Constants and Types ---------------------------------------------- */ 00041 00042 00043 /* ---- Function Prototypes ---------------------------------------------- */ 00044 00045 extern void koala_change_term_mode(int dir); 00046 00047 extern int koala_kbhit(void); 00048 00049 extern void koala_clrscr(void); 00050 00051 extern void koala_move_cursor(int c, int l); 00052 00053 extern void koala_move_cursor_column(int c); 00054 00055 extern void koala_move_cursor_line(int l); 00056 00057 extern void koala_erase_line(int line); 00058 00059 extern long long 00060 koala_timeval_diff(struct timeval *difference, 00061 struct timeval *end_time, 00062 struct timeval *start_time 00063 ); 00064 00065 00066 #endif // #ifndef __koala_utils__ 00067