start method

void start()

The main loop that reads from stdin

Implementation

void start() {
  // UCI requires UTF-8 and handling of \n or \r\n
  stdin
      .transform(utf8.decoder)
      .transform(const LineSplitter())
      .listen(_handleCommand);
}