diff options
author | erw7 <erw7.github@gmail.com> | 2018-06-01 03:04:45 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-12-27 22:35:59 +0100 |
commit | 606030155805732a0aec9da632936e87095d3974 (patch) | |
tree | 4c7bdf30a0968ad50f856dbe667c65033368cc7c /scripts/update_terminfo.sh | |
parent | 47473b39cb2b88c660e5a9959836440d5cd25d76 (diff) | |
download | rneovim-606030155805732a0aec9da632936e87095d3974.tar.gz rneovim-606030155805732a0aec9da632936e87095d3974.tar.bz2 rneovim-606030155805732a0aec9da632936e87095d3974.zip |
win/TUI: SetConsoleMode() to override libuv #9094
Use uv_set_vterm_state() to override libuv's guess.
See https://github.com/libuv/libuv/pull/1873/ for discussion.
This commit uses a terminal-detection approach based on
GetProcessImageFileNameW(...), which will be reverted in the following
commit. The approach was intended to handle the case of running in
winpty (:terminal), but we will add $NVIM env var for that.
Also add some support for ConEmu, cygwin.
Diffstat (limited to 'scripts/update_terminfo.sh')
-rwxr-xr-x | scripts/update_terminfo.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/update_terminfo.sh b/scripts/update_terminfo.sh index e3b1692b15..c78799a56e 100755 --- a/scripts/update_terminfo.sh +++ b/scripts/update_terminfo.sh @@ -26,6 +26,7 @@ readonly -A entries=( [tmux-256color]=tmux_256colour_terminfo [vte-256color]=vte_256colour_terminfo [xterm-256color]=xterm_256colour_terminfo + [cygwin]=cygwin_terminfo ) db="$(mktemp -du)" @@ -83,7 +84,7 @@ for term in $sorted_terms; do echo "};" done >> "$target" -cat > "$target" <<EOF +cat >> "$target" <<EOF #endif // NVIM_TUI_TERMINFO_DEFS_H EOF print_bold 'done\n' |