Describe the bug
According to the VIM documentation in terminal.txt under terminal-cursor-style:
By default the cursor in the terminal window uses a not blinking block. The
normal xterm escape sequences can be used to change the blinking state and the
shape. Once focus leaves the terminal window Vim will restore the original
cursor.
However, trying these in a terminal inside the GUI of MacVim does not work.
To Reproduce
Detailed steps to reproduce the behavior:
Run mvim --clean
Type :terminal to create a new terminal emulator buffer
Type any of the following commands and press enter:
printf '\e[1 q' should turn the cursor into a blinking block, which works;
printf '\e[2 q' should turn the cursor into a steady block, which works;
printf '\e[3 q' should turn the cursor into a blinking underline, instead the cursor turns invisible;
printf '\e[4 q' should turn the cursor into a steady underline, instead the cursor turns invisible;
printf '\e[5 q' should turn the cursor into a blinking bar, instead the cursor turns invisible;
printf '\e[6 q' should turn the cursor into a steady bar, instead the cursor turns invisible.
Expected behavior
The same steps executed in gvim on Kubuntu 18.04 all work as expected, changing the cursor shapes as prescribed by the definition of the control sequences cited above.
Environment (please complete the following information):
Describe the bug According to the VIM documentation in
terminal.txt
under terminal-cursor-style:These control sequences are defined as follows (source: XTerm Control Sequences ):
However, trying these in a terminal inside the GUI of MacVim does not work.
To Reproduce Detailed steps to reproduce the behavior:
mvim --clean
:terminal
to create a new terminal emulator bufferprintf '\e[1 q'
should turn the cursor into a blinking block, which works;printf '\e[2 q'
should turn the cursor into a steady block, which works;printf '\e[3 q'
should turn the cursor into a blinking underline, instead the cursor turns invisible;printf '\e[4 q'
should turn the cursor into a steady underline, instead the cursor turns invisible;printf '\e[5 q'
should turn the cursor into a blinking bar, instead the cursor turns invisible;printf '\e[6 q'
should turn the cursor into a steady bar, instead the cursor turns invisible.Expected behavior The same steps executed in
gvim
on Kubuntu 18.04 all work as expected, changing the cursor shapes as prescribed by the definition of the control sequences cited above.Environment (please complete the following information):
Vim version
OS: macOS Catalina 10.15.7
Terminal: GUI