macvim-dev / macvim-dev/macvim
shift-space produces escape sequence in terminal
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce
- start macvim gui
- enter
:term<enter>to start terminal mode - enter
od -c<enter>to start octal dump - enter -space followed by followed by -D to end input
- observe output
% od -c
^[[32;2u
0000000 033 [ 3 2 ; 2 u \n
0000010
Expected behaviour
I expect shift-space to produce a space character, 020
% od -t x1
0000000 20 0a
0000002
Version of Vim
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 24 2021 14:13:28) Included patches: 1-3455
Environment
OS: MacOS 10.15.7 and 12.0.1
terminal: MacVim 8.2.3455
TERM: xterm
shell: GNU bash, version 5.1.12(1)-release (x86_64-apple-darwin21.1.0)
FWIW I tried a vanilla env without .bashrc .bash_profile and .vimrc with same result
Logs and stack traces
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported sequence in MacVim terminal mode with od -c, using the listed macOS and Vim versions if available. Trace where Shift-Space is translated into the emitted escape sequence and verify that the terminal instead receives a space character; the reproduction output provides the completion check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, vim
- Domain
- cli, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100