Skip to content
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

Enable raw keyboard input #832

Merged
merged 6 commits into from
Apr 28, 2024

Conversation

jglanycon
Copy link
Contributor

In order for applications to receive all keyboard inputs, including the Ctrl-C and Ctrl-Z, the raw input mode has been enabled.

As result the SIGINT will no longer be used, instead the keyboard Ctrl-C event is used for exiting the framework, but only if no components has made use of it.

@ArthurSonzogni
Copy link
Owner

Excellent! Thank you very much!

@jglanycon
Copy link
Contributor Author

I have reintroduced the handling of SIGINT signal, even though I am not sure it will be used anymore. All tests now passed and you should be able to merge it into the main branch :-)

src/ftxui/component/screen_interactive.cpp Outdated Show resolved Hide resolved
src/ftxui/component/screen_interactive.cpp Outdated Show resolved Hide resolved
src/ftxui/component/screen_interactive.cpp Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@ArthurSonzogni
Copy link
Owner

After this patch, FTXUI is not able to react accordingly to (CTRL-Z aka SIGTSTP). I will need to find a solution.

Jørn Gustav Larsen and others added 5 commits April 28, 2024 10:55
In order for applications to receive all keyboard inputs, including the
Ctrl-C and Ctrl-Z, the raw input mode has been enabled. As result the
SIGINT will no longer be used, instead the keyboard Ctrl-C event is used
for exiting the framework, but only if no components has made use of it.
@ArthurSonzogni ArthurSonzogni merged commit d386df6 into ArthurSonzogni:main Apr 28, 2024
6 of 7 checks passed
@ArthurSonzogni
Copy link
Owner

Merged!

@jglanycon jglanycon deleted the RawTerminalInput branch April 29, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants