00001 //--------------------------------------------------------------------------------// 00002 //- kb_utils.h -// 00003 // -// 00004 //- Copyright (C) Julien Tharin, K-Team S.A. 2011 -// 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 //- Rue Galilee 9. Y-Park, | / __ | | _____|/ _ \| \/ | -// 00022 //- 1400 Yverdon-les-Bains | | \ | | ____|/ /_\ | | -// 00023 //- Switzerland |__|\__\ |__|______|_/ \_|__|\/|__| -// 00024 //- jtharin@k-team.com tel:+41 24 423 89 75 fax:+41 24 423 8960 -// 00025 //- -// 00026 //--------------------------------------------------------------------------------// 00027 00029 00032 00033 00034 #ifndef __kb_utils__ 00035 #define __kb_utils__ 00036 00037 /* ---- Constants and Types ---------------------------------------------- */ 00038 00039 00040 /* ---- Function Prototypes ---------------------------------------------- */ 00041 00042 void kb_change_term_mode(int dir); 00043 00044 int kb_kbhit(void); 00045 00046 void kb_clrscr(void); 00047 00048 void kb_move_cursor(int c, int l); 00049 00050 void kb_move_cursor_column(int c); 00051 00052 void kb_move_cursor_line(int l); 00053 00054 void kb_erase_line(int line); 00055 00056 00057 #endif // #ifndef __kb_utils__ 00058