out_str((char_u *)" ");
term_windgoto(0, 0);
+ /* Need to reset the known cursor position. */
+ screen_start();
+
/* check for the characters now, otherwise they might be eaten by
* get_keystroke() */
out_flush();
is_mac_terminal = TRUE;
}
# ifdef FEAT_MOUSE_SGR
- /* Iterm2 sends 0;95;0 */
+ /* iTerm2 sends 0;95;0 */
if (STRNCMP(tp + extra - 2, "0;95;0c", 7) == 0)
is_iterm2 = TRUE;
# endif
{
# ifdef FEAT_MOUSE_SGR
/* Xterm version 277 supports SGR. Also support
- * Terminal.app and iterm2. */
+ * Terminal.app and iTerm2. */
if (version >= 277 || is_iterm2 || is_mac_terminal)
set_option_value((char_u *)"ttym", 0L,
(char_u *)"sgr", 0);