Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/libvterm/bin/vterm-ctrl.c +++ b/src/libvterm/bin/vterm-ctrl.c @@ -53,6 +53,7 @@ static char *helptext[] = { "curblink [off|on|query]", "curshape [block|under|bar|query]", "mouse [off|click|clickdrag|motion]", + "reportfocus [off|on|query]", "altscreen [off|on|query]", "bracketpaste [off|on|query]", "icontitle [STR]", @@ -81,9 +82,9 @@ static int seticanon(int icanon, int ech return ret; } -static void await_c1(int c1) +static void await_c1(unsigned char c1) { - int c; + unsigned char c; /* await CSI - 8bit or 2byte 7bit form */ int in_esc = FALSE; @@ -340,6 +341,9 @@ int main(int argc, char *argv[]) printf("\x1b[?1003h"); break; } } + else if(streq(arg, "reportfocus")) { + do_dec_mode(1004, getboolq(&argi, argc, argv), "reportfocus"); + } else if(streq(arg, "altscreen")) { do_dec_mode(1049, getboolq(&argi, argc, argv), "altscreen"); }