Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl-C doesn't break in terminal on Mac

I am using the VSCode 1.38.0 on macOS 10.14.6 and running into this problem here:

  1. Open a terminal application in the integrated terminal
  2. Press Ctrl-C with the focus inside the terminal, while the application is running
  3. The terminal does not get a signal to stop the process; instead I can see that it is triggers Mac's copy command (which is normally cmd+c)

I tested this by removing all extensions and resetting all mapped keys, but still get this same issue.

My problem is very similar to this issue linked below, reported by another user, except that I am running a newer version of VSCode on macOS.

https://github.com/Microsoft/vscode/issues/29773

like image 997
krmsrc Avatar asked Sep 06 '19 19:09

krmsrc


People also ask

How do you break a command in terminal Mac?

Terminate commands In the Terminal app on your Mac, click the Terminal window that is running the command you want to terminate. Press Control-C. This sends a signal that causes most commands to terminate.

How do you Ctrl C in terminal?

While in a command line such as MS-DOS, Linux, and Unix, Ctrl + C is used to send a SIGINT signal, which cancels or terminates the currently-running program. For example, if a script or program is frozen or stuck in an infinite loop, pressing Ctrl + C cancels that command and returns you to the command line.

How do you break a command in terminal?

Use Ctrl + Break key combo. Press Ctrl + Z .

Why Ctrl-C doesn't break in terminal on Mac?

Ctrl-C doesn't break in terminal on Mac. 1 Open a terminal application in the integrated terminal. 2 Press Ctrl-C with the focus inside the terminal, while the application is running. 3 The terminal does not get a signal to stop the process; instead I can see that it is triggers Mac's copy command (which is normally cmd+c)

How do I stop a terminal process on a Mac?

Open a terminal application in the integrated terminal Press Ctrl-C with the focus inside the terminal, while the application is running The terminal does not get a signal to stop the process; instead I can see that it is triggers Mac's copy command (which is normally cmd+c)

How do I use keyboard shortcuts in terminal on my Mac?

In the Terminal app on your Mac, you can quickly accomplish many tasks using keyboard shortcuts. See the shortcuts below, as well as in Terminal menus in the menu bar. In app menus, keyboard shortcuts are represented by symbols. Note: Keyboard shortcuts in apps may vary depending on the language and keyboard layout you’re using on your Mac.

How to get Ctrl+C and Ctrl+V in Mac?

If you love the idea of swapping Control and Command keys on a Mac to get Ctrl+C and Ctrl+V in Mac, please follow the given below instructions. NOTE: After swapping Ctrl and Command keys, the Ctrl key will function as Command key. Step 1: Open System Preferences by clicking System Preferences icon in the dock.


2 Answers

I solved the problem by using command + .

You can also use: control^ + c

like image 174
Yousuf M.N Avatar answered Oct 11 '22 12:10

Yousuf M.N


On macOS Catalina, CTRL+Z works for me.

like image 20
MILITARY FOX Avatar answered Oct 11 '22 13:10

MILITARY FOX