#include <sys/types.h>
#include <sys/time.h>


int main(argc, argv)
     int argc;
     char **argv;
{
  /* later, add support for changing milliseconds. Not now. */

  int stat;
  char c;
  struct timeval timeout;
  timeout.tv_sec = 0;
  timeout.tv_usec = 10000;	/* .01 sec */
  
  while(1 == (stat = read(0,&c,1))) {
    write(1,&c,1);
    write(2,&c,1);
    select(0,0,0,0, &timeout);
  }
}
