intr_char.c

Go to the documentation of this file.
00001 #include "gis.h"
00002 
00003 #include "config.h"
00004 #ifndef __MINGW32__
00005 #ifdef HAVE_TERMIO_H
00006 # include <termio.h>
00007 # define TYPE termio
00008 # define C c_cc[VINTR]
00009 # define GET TCGETA
00010 #else
00011 # include <sgtty.h>
00012 # define TYPE tchars
00013 # define C t_intrc
00014 # define GET TIOCGETC
00015 #endif
00016 #endif
00017 
00029 char G_intr_char()
00030 {
00031     char c = 0;
00032 #ifndef __MINGW32__    
00033     struct TYPE buf;
00034 
00035     ioctl (2, GET, &buf);
00036     c = buf.C;
00037 #endif    
00038     return c;
00039 }

Generated on Mon Jan 1 19:49:25 2007 for GRASS by  doxygen 1.5.1