Skip to content

ANSI escape characters appear in input buffer when switching between windows #1375

@serant

Description

@serant

Describe the bug

Powershell7 - ANSI escape characters appearing whenever I use keyboard shortcuts or mouse to switch windows and use mouse to focus a window.

  • Win + Tab adds [0
  • Clicking on the window adds [I
Image

Impact: Need to clear input buffer before entering commands - especially slash commands.

Only seems to be happening on copilot-cli, none of my other TUI apps in the same Powershell window have this issue.

Affected version

Using Copilot version: 0.0.375 0.0.375 Commit: fe4913f

Steps to reproduce the behavior

  • Open powershell7 windows
  • Launch copilot cli
  • Tab to different window - see ANSI chars
  • Click the copilot cli window - see ANSI chars

Expected behavior

Switching between windows shouldn't add any characters here

Additional context

Attaching ps .json file for reference

settings.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions