Buy GNU books!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
An alternate interface is available to plain
applications need to interleave keyboard I/O with file, device, or
window system I/O, typically by using a main loop to
on various file descriptors. To accomodate this need, readline can
also be invoked as a `callback' function from an event loop. There
are functions available to make this easy.
rl_callback_read_char(), which will read the next character from the current input source. If that character completes the line,
rl_callback_read_charwill invoke the lhandler function saved by
rl_callback_handler_installto process the line. Before calling the lhandler function, the terminal settings are reset to the values they had before calling
rl_callback_handler_install. If the lhandler function returns, the terminal settings are modified for Readline's use again.
EOFis indicated by calling lhandler with a
rl_callback_handler_installdoes not exit the program, either this function or the function referred to by the value of
rl_deprep_term_functionshould be called before the program exits to reset the terminal settings.
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|