Look for the escape sequence only in tty mode
Remove unused optimization that could lead in loosing the escape sequence
Use integers instead of non-printable chars in the escape sequence detection
Fix merge issue
Update README with escape sequence