Possibly wrong output in narrow terminals in Vim
Bug description
In Vim, we can't seem to be able to set the PTY's width (as we reported upstream: https://github.com/vim/vim/issues/11476). Some commands (i.e. Ninja, as far as we know) rely on the PTY's width to output properly formatted lines, and even use ANSI sequences to manipulate/clear lines, which gets messed up when the width perceived by the command does not correspond to what we try to set for the PTY.
The effect is a messed-up output in the Vim-CMake console. However, all other functionalities, including Quickfix, work as expected.
To Reproduce
Run :CMakeBuild for a Ninja-based build system in a narrow terminal in Vim.
Expected behavior
We would expect the PTY to have the width we specify when we call s:system.JobRun(). The environment variable COLUMNS seems to be set correctly, but the actual width of the PTY is wrong (see https://github.com/vim/vim/issues/11476).
Other info
- OS: Linux
- Vim/Neovim version: Vim 9.0.720
- Vim-CMake version (
:echo cmake#GetInfo().version): 0.11.1