comparison src/libvterm/include/vterm.h @ 20480:d0bf39eb2b07 v8.2.0794

patch 8.2.0794: libvterm code lags behind the upstream version Commit: https://github.com/vim/vim/commit/d098b824c10cc20dc55e18c22c4991f61826006e Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 18 21:12:59 2020 +0200 patch 8.2.0794: libvterm code lags behind the upstream version Problem: Libvterm code lags behind the upstream version. Solution: Include revisions 743 - 747.
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 May 2020 21:15:04 +0200
parents 9ad473b50471
children dc88c690f19b
comparison
equal deleted inserted replaced
20479:c4b13b8932fb 20480:d0bf39eb2b07
266 266
267 // ----------- 267 // -----------
268 // State layer 268 // State layer
269 // ----------- 269 // -----------
270 270
271 /* Copies of VTermState fields that the 'resize' callback might have reason to
272 * edit. 'resize' callback gets total control of these fields and may
273 * free-and-reallocate them if required. They will be copied back from the
274 * struct after the callback has returned.
275 */
276 typedef struct {
277 VTermPos pos; /* current cursor position */
278 } VTermStateFields;
279
271 typedef struct { 280 typedef struct {
272 int (*putglyph)(VTermGlyphInfo *info, VTermPos pos, void *user); 281 int (*putglyph)(VTermGlyphInfo *info, VTermPos pos, void *user);
273 int (*movecursor)(VTermPos pos, VTermPos oldpos, int visible, void *user); 282 int (*movecursor)(VTermPos pos, VTermPos oldpos, int visible, void *user);
274 int (*scrollrect)(VTermRect rect, int downward, int rightward, void *user); 283 int (*scrollrect)(VTermRect rect, int downward, int rightward, void *user);
275 int (*moverect)(VTermRect dest, VTermRect src, void *user); 284 int (*moverect)(VTermRect dest, VTermRect src, void *user);
278 int (*setpenattr)(VTermAttr attr, VTermValue *val, void *user); 287 int (*setpenattr)(VTermAttr attr, VTermValue *val, void *user);
279 // Callback for setting various properties. Must return 1 if the property 288 // Callback for setting various properties. Must return 1 if the property
280 // was accepted, 0 otherwise. 289 // was accepted, 0 otherwise.
281 int (*settermprop)(VTermProp prop, VTermValue *val, void *user); 290 int (*settermprop)(VTermProp prop, VTermValue *val, void *user);
282 int (*bell)(void *user); 291 int (*bell)(void *user);
283 int (*resize)(int rows, int cols, VTermPos *delta, void *user); 292 int (*resize)(int rows, int cols, VTermStateFields *fields, void *user);
284 int (*setlineinfo)(int row, const VTermLineInfo *newinfo, const VTermLineInfo *oldinfo, void *user); 293 int (*setlineinfo)(int row, const VTermLineInfo *newinfo, const VTermLineInfo *oldinfo, void *user);
285 } VTermStateCallbacks; 294 } VTermStateCallbacks;
286 295
287 typedef struct { 296 typedef struct {
288 VTermPos pos; 297 VTermPos pos;