Editline with non-blocking input.
Posted
by Sasun Hambardzumyan
on Stack Overflow
See other posts from Stack Overflow
or by Sasun Hambardzumyan
Published on 2010-06-14T11:32:23Z
Indexed on
2010/06/14
12:42 UTC
Read the original article
Hit count: 123
I use editline library in my program, for user commands input in shell. But becides shell, program have a gui interface, so I need to run editline's readline() function in separate thread, because it blocks until Enter pressed. Is there a way to use readline() function without blocking, so I could avoid separate thread usage?
© Stack Overflow or respective owner