|
43 | 43 | * - add test for giving error for invalid 'termsize' value. |
44 | 44 | * - support minimal size when 'termsize' is "rows*cols". |
45 | 45 | * - support minimal size when 'termsize' is empty? |
| 46 | + * - do not set bufhidden to "hide"? works like a buffer with changes. |
| 47 | + * document that CTRL-W :hide can be used. |
| 48 | + * - command argument with spaces doesn't work #1999 |
| 49 | + * :terminal ls dir\ with\ spaces |
46 | 50 | * - implement job options when starting a terminal. Allow: |
47 | 51 | * "in_io", "in_top", "in_bot", "in_name", "in_buf" |
48 | 52 | "out_io", "out_name", "out_buf", "out_modifiable", "out_msg" |
@@ -845,7 +849,7 @@ add_scrollback_line_to_buffer(term_T *term, char_u *text, int len) |
845 | 849 | int empty = (buf->b_ml.ml_flags & ML_EMPTY); |
846 | 850 | linenr_T lnum = buf->b_ml.ml_line_count; |
847 | 851 |
|
848 | | -#ifdef _WIN32 |
| 852 | +#ifdef WIN3264 |
849 | 853 | if (!enc_utf8 && enc_codepage > 0) |
850 | 854 | { |
851 | 855 | WCHAR *ret = NULL; |
@@ -1295,7 +1299,7 @@ term_get_cursor_shape(guicolor_T *fg, guicolor_T *bg) |
1295 | 1299 | { |
1296 | 1300 | entry.blinkwait = 700; |
1297 | 1301 | entry.blinkon = 400; |
1298 | | - entry.blinkon = 250; |
| 1302 | + entry.blinkoff = 250; |
1299 | 1303 | } |
1300 | 1304 | *fg = gui.back_pixel; |
1301 | 1305 | if (term->tl_cursor_color == NULL) |
@@ -1487,7 +1491,7 @@ terminal_loop(void) |
1487 | 1491 | goto theend; |
1488 | 1492 | } |
1489 | 1493 | } |
1490 | | -# ifdef _WIN32 |
| 1494 | +# ifdef WIN3264 |
1491 | 1495 | if (!enc_utf8 && has_mbyte && c >= 0x80) |
1492 | 1496 | { |
1493 | 1497 | WCHAR wc; |
@@ -2120,7 +2124,7 @@ term_update_window(win_T *wp) |
2120 | 2124 | ScreenLinesUC[off] = NUL; |
2121 | 2125 | } |
2122 | 2126 | } |
2123 | | -# ifdef _WIN32 |
| 2127 | +# ifdef WIN3264 |
2124 | 2128 | else if (has_mbyte && c >= 0x80) |
2125 | 2129 | { |
2126 | 2130 | char_u mb[MB_MAXBYTES+1]; |
@@ -2263,8 +2267,15 @@ create_vterm(term_T *term, int rows, int cols) |
2263 | 2267 | /* Allow using alternate screen. */ |
2264 | 2268 | vterm_screen_enable_altscreen(screen, 1); |
2265 | 2269 |
|
2266 | | - /* We do not want a blinking cursor by default. */ |
| 2270 | + /* For unix do not use a blinking cursor. In an xterm this causes the |
| 2271 | + * cursor to blink if it's blinking in the xterm. |
| 2272 | + * We do want a blinking cursor by default on Windows, since that's what |
| 2273 | + * the default is for a console. */ |
| 2274 | +#ifdef WIN3264 |
| 2275 | + value.boolean = 1; |
| 2276 | +#else |
2267 | 2277 | value.boolean = 0; |
| 2278 | +#endif |
2268 | 2279 | vterm_state_set_termprop(vterm_obtain_state(vterm), |
2269 | 2280 | VTERM_PROP_CURSORBLINK, &value); |
2270 | 2281 | } |
|
0 commit comments