code: def configure_tty(self):
          
          attr = termios.tcgetattr(self.fd)
          attr[1] &= ~termios.ONLCR  # oflag
          attr[3] &= ~termios.ECHO  # lflag
          termios.tcsetattr(self.fd, termios.TCSANOW, attr)
          # unsetopt zle prevents Zsh from resetting the tty
          return b'unsetopt zle 2> /dev/null;stty -echo -onlcr -ctlecho;'
docs: We don't want \n to be replaced with \r\n, and we disable the echo