Main Page   File List   Globals  

examples/font_and_keyb.c

00001 /***************************************************************************
00002             font_and_keyb.c  -  Example for keyboard and font usage
00003                              -------------------
00004     begin                : Fri Feb 8 2002
00005     copyright            : (C) 2001 by Daniele Venzano
00006     email                : webvenza@libero.it
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; version 2 of the License.               *
00014  *                                                                         *
00015  ***************************************************************************/
00016 #include "FBlib.h"
00017 
00018 int main()
00019 {
00020         int key;
00021 
00022         FB_initlib("/dev/fb0");
00023         FB_kb_init();
00024         FB_clear_screen(FB_makecol(0,0,0,0));
00025         while(1)
00026         {
00027                 FB_printf(30,30, FB_makecol(255,255,255,0), "Ciao!");
00028                 if((key = FB_get_key()) != NO_KEY)
00029                         if(key == 'q')
00030                                 break;
00031         }               
00032         FB_exit();
00033         return 0;
00034 }

Generated on Sat Jul 5 09:04:51 2003 for LibFB by doxygen1.2.18