serial input to arduino

Guys, please,

  1. the code works with the serial monitor (hint),
  2. not so well with a terminal emulator,
  3. no-one likes a "delay".

Are we agreed?