comparison src/terminal.c @ 12259:48eac9bc2f82 v8.0.1009

patch 8.0.1009: Xterm cursor blinking status may be inverted commit https://github.com/vim/vim/commit/4db2554954056f21f2ba4cf4988c652745d7042a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 28 22:43:05 2017 +0200 patch 8.0.1009: Xterm cursor blinking status may be inverted Problem: Xterm cursor blinking status may be inverted. Solution: Use another request to get the blink status and compare with the cursor style report
author Christian Brabandt <cb@256bit.org>
date Mon, 28 Aug 2017 22:45:04 +0200
parents d0b039e2ed56
children e3bde71afff0
comparison
equal deleted inserted replaced
12258:8b386ef3a93d 12259:48eac9bc2f82
37 * When the buffer is changed it is turned into a normal buffer, the attributes 37 * When the buffer is changed it is turned into a normal buffer, the attributes
38 * in tl_scrollback are no longer used. 38 * in tl_scrollback are no longer used.
39 * 39 *
40 * TODO: 40 * TODO:
41 * - ":term NONE" does not work in MS-Windows. 41 * - ":term NONE" does not work in MS-Windows.
42 * - better check for blinking - reply from Thomas Dickey Aug 22
43 * - test for writing lines to terminal job does not work on MS-Windows 42 * - test for writing lines to terminal job does not work on MS-Windows
44 * - implement term_setsize() 43 * - implement term_setsize()
45 * - add test for giving error for invalid 'termsize' value. 44 * - add test for giving error for invalid 'termsize' value.
46 * - support minimal size when 'termsize' is "rows*cols". 45 * - support minimal size when 'termsize' is "rows*cols".
47 * - support minimal size when 'termsize' is empty? 46 * - support minimal size when 'termsize' is empty?
2480 2479
2481 d = dict_alloc(); 2480 d = dict_alloc();
2482 if (d != NULL) 2481 if (d != NULL)
2483 { 2482 {
2484 dict_add_nr_str(d, "visible", term->tl_cursor_visible, NULL); 2483 dict_add_nr_str(d, "visible", term->tl_cursor_visible, NULL);
2485 dict_add_nr_str(d, "blink", term->tl_cursor_blink, NULL); 2484 dict_add_nr_str(d, "blink", blink_state_is_inverted()
2485 ? !term->tl_cursor_blink : term->tl_cursor_blink, NULL);
2486 dict_add_nr_str(d, "shape", term->tl_cursor_shape, NULL); 2486 dict_add_nr_str(d, "shape", term->tl_cursor_shape, NULL);
2487 dict_add_nr_str(d, "color", 0L, term->tl_cursor_color == NULL 2487 dict_add_nr_str(d, "color", 0L, term->tl_cursor_color == NULL
2488 ? (char_u *)"" : term->tl_cursor_color); 2488 ? (char_u *)"" : term->tl_cursor_color);
2489 list_append_dict(l, d); 2489 list_append_dict(l, d);
2490 } 2490 }