diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-25 16:20:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-25 16:20:37 +0200 |
commit | b5b49a3b430ea0aaf8cce6b7bc0e444f0211ddfb (patch) | |
tree | 77b77ba00afb5be07127b3f52d6b0175291e0351 /src/libvterm/t | |
parent | e7499ddc33508d3d341e96f84a0e7b95b2d6927c (diff) | |
download | vim-git-b5b49a3b430ea0aaf8cce6b7bc0e444f0211ddfb.tar.gz |
patch 8.0.1639: libvterm code lags behind masterv8.0.1639
Problem: Libvterm code lags behind master.
Solution: Sync to head, solve merge problems.
Diffstat (limited to 'src/libvterm/t')
-rw-r--r-- | src/libvterm/t/10state_putglyph.test | 6 | ||||
-rw-r--r-- | src/libvterm/t/25state_input.test | 11 | ||||
-rw-r--r-- | src/libvterm/t/26state_query.test | 4 | ||||
-rw-r--r-- | src/libvterm/t/harness.c | 16 |
4 files changed, 35 insertions, 2 deletions
diff --git a/src/libvterm/t/10state_putglyph.test b/src/libvterm/t/10state_putglyph.test index 5665bce1d..6d5d56a38 100644 --- a/src/libvterm/t/10state_putglyph.test +++ b/src/libvterm/t/10state_putglyph.test @@ -17,6 +17,12 @@ PUSH "\xC3\x81\xC3\xA9" putglyph 0xc1 1 0,0 putglyph 0xe9 1 0,1 +!UTF-8 split writes +RESET +PUSH "\xC3" +PUSH "\x81" + putglyph 0xc1 1 0,0 + !UTF-8 wide char # U+FF10 = 0xEF 0xBC 0x90 name: FULLWIDTH DIGIT ZERO RESET diff --git a/src/libvterm/t/25state_input.test b/src/libvterm/t/25state_input.test index d54de838f..a5119fbd8 100644 --- a/src/libvterm/t/25state_input.test +++ b/src/libvterm/t/25state_input.test @@ -130,3 +130,14 @@ PASTE START output "\e[200~" PASTE END output "\e[201~" + +!Focus reporting disabled +FOCUS IN +FOCUS OUT + +!Focus reporting enabled +PUSH "\e[?1004h" +FOCUS IN + output "\e[I" +FOCUS OUT + output "\e[O" diff --git a/src/libvterm/t/26state_query.test b/src/libvterm/t/26state_query.test index bfe8f6947..3ace2d532 100644 --- a/src/libvterm/t/26state_query.test +++ b/src/libvterm/t/26state_query.test @@ -58,5 +58,5 @@ PUSH "\e[5n" PUSH "\e F" !Truncation on attempted buffer overflow -PUSH "\e[6n" x 20 - output "\e[10;10R" x 7 +PUSH "\e[6n" x 30 + output "\e[10;10R" x 24 diff --git a/src/libvterm/t/harness.c b/src/libvterm/t/harness.c index 2ba77f01c..e2c729555 100644 --- a/src/libvterm/t/harness.c +++ b/src/libvterm/t/harness.c @@ -233,6 +233,9 @@ static int settermprop(VTermProp prop, VTermValue *val, void *user) case VTERM_VALUETYPE_COLOR: printf("settermprop %d rgb(%d,%d,%d)\n", prop, val->color.red, val->color.green, val->color.blue); return 1; + + case VTERM_N_VALUETYPES: + return 0; } return 0; @@ -316,6 +319,9 @@ static int state_setpenattr(VTermAttr attr, VTermValue *val, void *user) case VTERM_ATTR_BACKGROUND: state_pen.background = val->color; break; + + case VTERM_N_ATTRS: + return 0; } return 1; @@ -651,6 +657,16 @@ int main(int argc, char **argv) goto abort_line; } + else if(strstartswith(line, "FOCUS ")) { + char *linep = line + 6; + if(streq(linep, "IN")) + vterm_state_focus_in(state); + else if(streq(linep, "OUT")) + vterm_state_focus_out(state); + else + goto abort_line; + } + else if(strstartswith(line, "MOUSEMOVE ")) { char *linep = line + 10; int row, col, len; |