Help for this page

Select Code to Download


  1. or download this
    while(defined($_ = $term->readline($prompt))) {
      [case statement to parse command]
    }
    
  2. or download this
    while (not time to quit) {
      [see if there is keyboard stuff to process]
      [process any timer based stuff]
      [go back to sleep]
    }