macvim-dev / macvim-dev/macvim

shift-space produces escape sequence in terminal

Open
#1,224 5 comments 0 reactions 0 assignees View on GitHub

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
  1. start macvim gui
  2. enter :term<enter> to start terminal mode
  3. enter od -c<enter> to start octal dump
  4. enter -space followed by followed by -D to end input
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.