*** a/src/term.c	2013-05-11 02:48:30.000000000 +0900
--- b/src/term.c	2013-05-11 02:46:36.000000000 +0900
*************** stoptermcap()
*** 3251,3263 ****
  #ifdef FEAT_TERMRESPONSE
  # ifdef FEAT_GUI
  	if (!gui.in_use && !gui.starting)
  # endif
  	{
! 	    /* May need to check for T_CRV response. */
  	    if (crv_status == CRV_SENT || u7_status == U7_SENT)
! 		(void)vpeekc_nomap();
  	    /* Check for termcodes first, otherwise an external program may
  	     * get them. */
  	    check_for_codes_from_term();
  	}
  #endif
--- 3251,3271 ----
  #ifdef FEAT_TERMRESPONSE
  # ifdef FEAT_GUI
  	if (!gui.in_use && !gui.starting)
  # endif
  	{
! 	    /* May need to discard T_CRV or T_U7 response. */
  	    if (crv_status == CRV_SENT || u7_status == U7_SENT)
! 	    {
! # ifdef UNIX
! 		/* Discard data received but not read. */
! 		mch_delay(100L, FALSE);
! # endif
! # ifdef TCIFLUSH
! 		tcflush(fileno(stdin), TCIFLUSH);
! # endif
! 	    }
  	    /* Check for termcodes first, otherwise an external program may
  	     * get them. */
  	    check_for_codes_from_term();
  	}
  #endif
