summaryrefslogtreecommitdiff
path: root/src/libvterm/include
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-19 21:20:04 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-19 21:20:04 +0200
commitbe593bf135f6967335b14ba188bd5f8f32175c75 (patch)
tree18fcdef9c8d095ecd3a6b4b934b658d83f9a92ce /src/libvterm/include
parent904e48a22be7e227a73c70e520cf9d8bc50fc1b2 (diff)
downloadvim-git-be593bf135f6967335b14ba188bd5f8f32175c75.tar.gz
patch 8.2.0798: libvterm code lags behind the upstream versionv8.2.0798
Problem: Libvterm code lags behind the upstream version. Solution: Include revisions 755 - 758.
Diffstat (limited to 'src/libvterm/include')
-rw-r--r--src/libvterm/include/vterm.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/libvterm/include/vterm.h b/src/libvterm/include/vterm.h
index ea8f8cd10..8b6a64d96 100644
--- a/src/libvterm/include/vterm.h
+++ b/src/libvterm/include/vterm.h
@@ -107,10 +107,17 @@ typedef enum {
VTERM_N_VALUETYPES
} VTermValueType;
+typedef struct {
+ const char *str;
+ size_t len : 30;
+ unsigned int initial : 1;
+ unsigned int final : 1;
+} VTermStringFragment;
+
typedef union {
int boolean;
int number;
- char *string;
+ VTermStringFragment string;
VTermColor color;
} VTermValue;
@@ -257,8 +264,8 @@ typedef struct {
int (*control)(unsigned char control, void *user);
int (*escape)(const char *bytes, size_t len, void *user);
int (*csi)(const char *leader, const long args[], int argcount, const char *intermed, char command, void *user);
- int (*osc)(const char *command, size_t cmdlen, void *user);
- int (*dcs)(const char *command, size_t cmdlen, void *user);
+ int (*osc)(int command, VTermStringFragment frag, void *user);
+ int (*dcs)(const char *command, size_t commandlen, VTermStringFragment frag, void *user);
int (*resize)(int rows, int cols, void *user);
} VTermParserCallbacks;