Skip to content

CSI I and CSI O wrongly listed in output of ":set termcap" #7718

@lacygoill

Description

@lacygoill

Describe the bug

The CSI I and CSI O terminal sequences are wrongly listed in the output of :set termcap.

To Reproduce

Run this shell command:

vim -Nu NONE +'set termcap'

Notice that the sequences ^[[I and ^[[O are at the end of the "Terminal keys" section. And they're not mapped to any Vim keycode.

Expected behavior

I'm not sure, but either of these 2 statements should be true:

  • ^[[I and ^[[O are not listed in :set termcap, at all
  • ^[[I and ^[[O are listed in :set termcap, but they are prefixed with a Vim pseudo-key, like <FocusGain> and <FocusLost>

Rationale: They are the only sequences which are not mapped to any Vim key or pseudo-key, which is inconsistent.

Environment

  • Vim version: 8.2 Included patches: 1-2380
  • OS: Ubuntu 16.04.7 LTS
  • Terminal: xterm(363)

Additional context

These sequences started to appear in 8.2.2345, when FocusGain and FocusLost were introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions