Unbinding Ctrl+Shift+P sends raw CSI-u sequence (2;6u) to the terminal
#13355
Ghostty versionSteps to reproduce
Expected behavior
The key should remain available for terminal applications (e.g. flow, fresh terminal editors) without inserting a visible escape sequence at a normal shell prompt. Actual behaviorPressing at the shell prompt. Additional informationI want to unbind Ghostty's default shortcut so terminal applications can use this happens to all keybindings when made unbind in config Is this the intended behavior of |
Replies: 1 comment 2 replies
|
This is the intended distinction between
( There are therefore two different configurations: # Make the key available to the program running in the terminal:
keybind = ctrl+shift+p=unbind
# Make it do nothing and send nothing to the child:
keybind = ctrl+shift+p=ignoreYou cannot simultaneously forward the key to an application and guarantee that an unrelated shell which does not understand its encoding displays nothing. For You can verify the bytes outside readline with If this clarifies the behavior, please mark it as the accepted answer so future users can find the |
At the Ghostty level, no: you cannot simultaneously:
Ctrl+Shift+Pavailable to the child application, andThose requirements conflict with how terminal input works.
unbindmeans: remove Ghostty’s action and let the key continue to the program running inside the terminal. Ghostty’s documentation explicitly states that an unbound key is sent through to the child command.ignore, on the other hand, consumes the key and sends no encoding.A terminal application does not receive a native GTK keyboard event such as “Ctrl+Shift+P.” It receives bytes through the PTY. Therefore, if Ghostty forwards that key while preserving the …