Kitty: Can interrupt signal be remapped?

Created on 15 Nov 2019  路  4Comments  路  Source: kovidgoyal/kitty

Many terminal offer remapping of interrupt signal, mapped by default to ctrl+c.
Is this possible in Kitty? I could not find it in docs nor source at a glance.

Since many terminal don't have smart copty or interrupt behavior #1286, some users, myself included, have gotten used to mapping interrupt on ctrl+shift+c.

kitty 0.14.6 created by Kovid Goyal

Most helpful comment

I must have been doing something wrong, thanks for update. For future readers, remapping copy and interrupt:

map ctrl+shift+c send_text all \x03
map ctrl+c copy_to_clipboard

In kitty.conf

All 4 comments

Use send_text to send \x03 on ctrl+c in kitty.conf

@kovidgoyal Thanks for a prompt reply!
The closest (inpsired here) I could get was using

map ctrl+shift+c send_text all \x03\\

Which somewhat works fine, but triggered on empty prompt without a running program to interrupt, it inserts \ (it doesnt work without the additional slash at the end). Perhaps I am using all incorrectly or I should input the symbol differently?

Works fine for me with kitty -o 'map ctrl+shift+c send_text all \x03'

I must have been doing something wrong, thanks for update. For future readers, remapping copy and interrupt:

map ctrl+shift+c send_text all \x03
map ctrl+c copy_to_clipboard

In kitty.conf

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hdriqi picture hdriqi  路  3Comments

keyofnight picture keyofnight  路  3Comments

crocket picture crocket  路  4Comments

Jomik picture Jomik  路  4Comments

Askannz picture Askannz  路  3Comments