You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is my code, and the question is write in title
I try other ctrl + key ,which like CtrlY,CtrlA,CtrlB, all of them can work
only CtrlH can not
then I try Event::Speical("\x08"), it can't work too.
so I guess the problem is my terminal "alacritty" or my keyboard, but both of them are good
then I run sudo showkey to press CtrlH, it show these
and I don't use alias in my .zshrc
I don't know what's wrong with CtrlH, so I try to check issue like #869
and your answer is
My terminal kitty doesn't send any key when I press CTRL + Shift + C. This is mapped to "copy".
I don't believe this is possible today to receive a different code for CTRL+C and CTRL+Shift+C, due to the current xterm specification. Terminal should send the same sequence for both:
https://superuser.com/a/722895
About overriding the default CTRL-C behavior, you can:
Call ScreenInteractive::ForceHandleCtrlC(false) [(source)](https://github.com/ArthurSonzogni/FTXUI/blob/main/src/ftxui/component/screen_interactive.cpp#L562-L566)
Your component must "catch" the CTRL-C event, by returning true in some handler.
So I find some codes in source, like
/// @brief Force FTXUI to handle or not handle Ctrl-C, even if the component
/// catches the Event::CtrlC.
void ScreenInteractive::ForceHandleCtrlC(bool force) {
force_handle_ctrl_c_ = force;
}
/// @brief Force FTXUI to handle or not handle Ctrl-Z, even if the component
/// catches the Event::CtrlZ.
void ScreenInteractive::ForceHandleCtrlZ(bool force) {
force_handle_ctrl_z_ = force;
}
but I notice that there is no function like "ScreenInteractive::ForceHandleCtrlH"
so, I can't use the answer like "overriding the default CTRL-C behavior"
Please help me, I don't want to use other keys like CtrlU to replace CtrlH....
The text was updated successfully, but these errors were encountered:
this is my code, and the question is write in title
I try other ctrl + key ,which like CtrlY,CtrlA,CtrlB, all of them can work
only CtrlH can not
then I try Event::Speical("\x08"), it can't work too.
so I guess the problem is my terminal "alacritty" or my keyboard, but both of them are good
then I run
sudo showkey
to press CtrlH, it show theseand I don't use alias in my .zshrc
I don't know what's wrong with CtrlH, so I try to check issue like #869
and your answer is
So I find some codes in source, like
but I notice that there is no function like "ScreenInteractive::ForceHandleCtrlH"
so, I can't use the answer like "overriding the default CTRL-C behavior"
Please help me, I don't want to use other keys like CtrlU to replace CtrlH....
The text was updated successfully, but these errors were encountered: