TTY: simserial, stop using serial_state->{line,icount}