[tty] Reset end_line_delim_count when switch to/from ICANON
[tty] Reset end_line_delim_count when switch to/from ICANON

vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs