Mercurial > vim
comparison src/libvterm/bin/vterm-ctrl.c @ 13531:9f857e6310b6 v8.0.1639
patch 8.0.1639: libvterm code lags behind master
commit https://github.com/vim/vim/commit/b5b49a3b430ea0aaf8cce6b7bc0e444f0211ddfb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 25 16:20:37 2018 +0200
patch 8.0.1639: libvterm code lags behind master
Problem: Libvterm code lags behind master.
Solution: Sync to head, solve merge problems.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 25 Mar 2018 16:30:06 +0200 |
parents | edf1a2a247fa |
children | 2449b6ce1456 |
comparison
equal
deleted
inserted
replaced
13530:28031e9f0da4 | 13531:9f857e6310b6 |
---|---|
51 "screen [off|on|query]", | 51 "screen [off|on|query]", |
52 "cursor [off|on|query]", | 52 "cursor [off|on|query]", |
53 "curblink [off|on|query]", | 53 "curblink [off|on|query]", |
54 "curshape [block|under|bar|query]", | 54 "curshape [block|under|bar|query]", |
55 "mouse [off|click|clickdrag|motion]", | 55 "mouse [off|click|clickdrag|motion]", |
56 "reportfocus [off|on|query]", | |
56 "altscreen [off|on|query]", | 57 "altscreen [off|on|query]", |
57 "bracketpaste [off|on|query]", | 58 "bracketpaste [off|on|query]", |
58 "icontitle [STR]", | 59 "icontitle [STR]", |
59 "icon [STR]", | 60 "icon [STR]", |
60 "title [STR]", | 61 "title [STR]", |
79 tcsetattr(0, TCSANOW, &termios); | 80 tcsetattr(0, TCSANOW, &termios); |
80 | 81 |
81 return ret; | 82 return ret; |
82 } | 83 } |
83 | 84 |
84 static void await_c1(int c1) | 85 static void await_c1(unsigned char c1) |
85 { | 86 { |
86 int c; | 87 unsigned char c; |
87 | 88 |
88 /* await CSI - 8bit or 2byte 7bit form */ | 89 /* await CSI - 8bit or 2byte 7bit form */ |
89 int in_esc = FALSE; | 90 int in_esc = FALSE; |
90 while((c = getchar())) { | 91 while((c = getchar())) { |
91 if(c == c1) | 92 if(c == c1) |
338 printf("\x1b[?1002h"); break; | 339 printf("\x1b[?1002h"); break; |
339 case 3: | 340 case 3: |
340 printf("\x1b[?1003h"); break; | 341 printf("\x1b[?1003h"); break; |
341 } | 342 } |
342 } | 343 } |
344 else if(streq(arg, "reportfocus")) { | |
345 do_dec_mode(1004, getboolq(&argi, argc, argv), "reportfocus"); | |
346 } | |
343 else if(streq(arg, "altscreen")) { | 347 else if(streq(arg, "altscreen")) { |
344 do_dec_mode(1049, getboolq(&argi, argc, argv), "altscreen"); | 348 do_dec_mode(1049, getboolq(&argi, argc, argv), "altscreen"); |
345 } | 349 } |
346 else if(streq(arg, "bracketpaste")) { | 350 else if(streq(arg, "bracketpaste")) { |
347 do_dec_mode(2004, getboolq(&argi, argc, argv), "bracketpaste"); | 351 do_dec_mode(2004, getboolq(&argi, argc, argv), "bracketpaste"); |