-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on_enter callback doesn't work #337
Comments
What are you trying to achieve with bind, and ctrl+g? |
my program based on FTXUI, I use ctrl+g to start my program |
Could you execute the example: And see what is sent for the "enter" and "space" characters? |
enter is ( 13 ) -> (special) |
It seems to be working fine. It is probably an issue with you program. I can't really say what, because you haven't posted it. |
|
https://github.com/brokensword2018/ftxui-starter you can use this to reproduce the problem . |
os : Ubuntu 20.04.3 LTS |
Thanks! Instead of sending "10" (New line) when pressing Enter, it sounds like we get "13" (Carriage Return) when going through "bind". I am not sure why bind works this way. |
I think what I can do, is converting 10/13 code into one of the two. This would make Window / non-Window consistent. This would also make Linux / Linux+Bind consistent. |
good job! waitting for you to fix this problem. |
Normally, it works well。
in ubuntu, when I use bind command to start my program based on FTXUI. the on_enter callback of input doesn,t work.
like this. add "bind -x '"\C-g":<my_program>" to ~/.bashrc. so I can use 'ctrl+g' to start my program.
The text was updated successfully, but these errors were encountered: