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

GTK compatible? #68

Open
azmeuk opened this issue Jun 24, 2014 · 2 comments
Open

GTK compatible? #68

azmeuk opened this issue Jun 24, 2014 · 2 comments

Comments

@azmeuk
Copy link

azmeuk commented Jun 24, 2014

Hi,
Is it possible to use linenoise in a graphical GTK application ?
If yes, how to deal with blocking linenoise() calls in the loop, and the gtk_main() function?

@ghost
Copy link

ghost commented Jul 1, 2014

i don't think this is possible
linenoise work just in cli

@stuaxo
Copy link

stuaxo commented Sep 1, 2014

To use it easily with gtk the libnoise calls would need to have nonblocking versions.

If not then you are left with hacks - for instance, you can run the gtk main loop in a different thread or process, then when the gui part of the app finishes, send a signal to kill the part dealing with stdin via linenoise.

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

No branches or pull requests

2 participants