Skip to content

Ctrl+Pause/Break closing tab #422

@chessami92

Description

@chessami92

Expected Behavior

When pressing Ctrl+Pause/Break, the INT is sent to running application.

Actual Behavior

The tab closes and bash never sees the INT from Ctrl+Pause/Break.

Steps to reproduce

  1. Set up Console to run bash.exe
  2. Press Ctrl+Pause/Break

If I run bash.exe directly, this code in the .bashrc will be triggered on both Ctrl+C and Ctrl+Pause/Break and the bash window never closes. In console, only Ctrl+C triggers the code and Ctrl+Pause/Break immediately closes the tab.

trap ctrl_break INT

function ctrl_break() {
    echo "** Trapped CTRL-BREAK"
}

I am seeing this issue because there is an application I use that ignores Ctrl+C but instead only listens for Ctrl+Pause/Break to exit early.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions