X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Finigo%2Fio.c;h=06acc3780b59744aa0e141a20defe5f48485f448;hb=e7aef2a74556095c076f41ba1910ce8c83a09bda;hp=431003d3291c47af23058428bd5bb2a96ac46ff9;hpb=092636b85449e57fd33ffd4954a2de23c2a5f81c;p=melted diff --git a/src/inigo/io.c b/src/inigo/io.c index 431003d..06acc37 100644 --- a/src/inigo/io.c +++ b/src/inigo/io.c @@ -29,6 +29,7 @@ #include #include #include +#include /* Application header files */ #include "io.h" @@ -75,19 +76,6 @@ char *strip_quotes( char *input ) return input; } -char *get_string( char *output, int maxlength, char *use ) -{ - char *value = NULL; - strcpy( output, use ); - if ( trim( chomp( fgets( output, maxlength, stdin ) ) ) != NULL ) - { - if ( !strcmp( output, "" ) ) - strcpy( output, use ); - value = output; - } - return value; -} - int *get_int( int *output, int use ) { int *value = NULL; @@ -160,7 +148,7 @@ int term_read( ) FD_ZERO( &rfds ); FD_SET( 0, &rfds ); tv.tv_sec = 0; - tv.tv_usec = 250; + tv.tv_usec = 40000; n = select( 1, &rfds, NULL, NULL, &tv ); if (n > 0) {