isocline
ASync

Async support. More...

Functions

bool ic_async_stop (void)
 Thread-safe way to asynchronously unblock a readline. More...
 

Detailed Description

Async support.

Function Documentation

◆ ic_async_stop()

bool ic_async_stop ( void  )

Thread-safe way to asynchronously unblock a readline.

Behaves as if the user pressed the ctrl-C character (resulting in returning NULL from ic_readline). Returns true if the event was successfully delivered. (This may not be supported on all platforms, but it is functional on Linux, macOS and Windows).