macvim-dev / macvim-dev/macvim

shift-space produces escape sequence in terminal

未关闭
#1,224 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在 MacVim 的终端模式下使用 od -c 重现报告的序列,并在可用时使用列出的 macOS 和 Vim 版本。跟踪 Shift-Space 在哪里被转换为发出的转义序列,并验证终端实际接收到的是空格字符;重现输出提供完成检查。

由索引模型根据 Issue 内容生成。

评估

技术栈
macos, vim
领域
cli, desktop, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。