* job finishes).
* - add option values to the command:
* :term <24x80> <close> vim notes.txt
+ * - support different cursor shapes, colors and attributes
+ * - make term_getcursor() return type (none/block/bar/underline) and
+ * attributes (color, blink, etc.)
* - To set BS correctly, check get_stty(); Pass the fd of the pty.
* - do not store terminal window in viminfo. Or prefix term:// ?
* - add a character in :ls output
cursor_on();
out_flush();
#ifdef FEAT_GUI
- if (gui.in_use && term->tl_cursor_visible)
+ if (gui.in_use)
gui_update_cursor(FALSE, FALSE);
#endif
}
if (term->tl_buffer == curbuf)
{
may_toggle_cursor(term);
- update_cursor(term, TRUE);
+ update_cursor(term, term->tl_cursor_visible);
}
return 1;
/* Need to break out of vgetc(). */
ins_char_typebuf(K_IGNORE);
- if (curbuf->b_term != NULL)
+ term = curbuf->b_term;
+ if (term != NULL)
{
- if (curbuf->b_term->tl_job == ch->ch_job)
+ if (term->tl_job == ch->ch_job)
maketitle();
- update_cursor(curbuf->b_term, TRUE);
+ update_cursor(term, term->tl_cursor_visible);
}
}
}