Handle pty char recv errors
Handle pty char recv errors

The main loop is now exitted if the char sender hangs up.

alacritty/alacritty,alacritty/alacritty,jwilm/alacritty,dannydulai/alacritty,jwilm/alacritty,jwilm/alacritty,dannydulai/alacritty,jwilm/alacritty