Support for C-c C-c on the terminal