microsoft / microsoft/terminal

cmd: add environment variable to disable/enable 'Terminate batch job (Y/N)?' confirmation

Open
#217 70 comments 97 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Interaction Issue-Feature Product-Cmd.exe
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

(migrated from https://github.com/PowerShell/PowerShell/issues/7080 per @BrucePay's suggestion)

When I cancel a cmd script with Ctrl C, the following dialog pops up:

Terminate batch job (Y/N)?

I understand why this exists, but I'd also like the option to disable it, so cancelling cancels immediately. Judging by Stack Overflow, I'm not the only one

So a request: could we have an environment variable to control this?

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

No file, test, or entry point is named in the issue. Start by locating the cmd Ctrl+C handling and its "Terminate batch job (Y/N)?" confirmation path, then determine how an environment variable should control it; done means cancellation follows the chosen setting and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.