view runtime/tools/vimm @ 11888:4db6c74df788 v8.0.0824

patch 8.0.0824: in Terminal mode the cursor and screen gets redrawn commit https://github.com/vim/vim/commit/392d1bfa5e14b9534af322003723ebd57cedcc64 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 31 21:18:58 2017 +0200 patch 8.0.0824: in Terminal mode the cursor and screen gets redrawn Problem: In Terminal mode the cursor and screen gets redrawn when the job produces output. Solution: Check for tl_terminal_mode. (partly by Yasuhiro Matsumoto, closes #1904)
author Christian Brabandt <cb@256bit.org>
date Mon, 31 Jul 2017 21:30:05 +0200
parents f4f8014d516e
children
line wrap: on
line source

#!/bin/sh
# enable DEC locator input model on remote terminal
printf  "\033[1;2'z\033[1;3'{\c"
vim "$@"
# disable DEC locator input model on remote terminal
printf  "\033[2;4'{\033[0'z\c"