… | |
… | |
240 | |
240 | |
241 | 1; |
241 | 1; |
242 | |
242 | |
243 | =back |
243 | =back |
244 | |
244 | |
|
|
245 | =head1 CAVEATS |
|
|
246 | |
|
|
247 | There are some issues with readline that can be problematic in event-based |
|
|
248 | programs: |
|
|
249 | |
|
|
250 | =over 4 |
|
|
251 | |
|
|
252 | =item blocking I/O |
|
|
253 | |
|
|
254 | Readline uses blocking terminal I/O. Under most circumstances, this does |
|
|
255 | not cause big delays, but ttys have the potential to block programs |
|
|
256 | indefinitely (e.g. on XOFF). |
|
|
257 | |
|
|
258 | =item unexpected disk I/O |
|
|
259 | |
|
|
260 | By default, readline does filename completion on TAB, and reads its |
|
|
261 | config files. |
|
|
262 | |
|
|
263 | =item tty settings |
|
|
264 | |
|
|
265 | After readline has been initialised, it will mangle the termios tty |
|
|
266 | settings. This does not normally affect output very much, but should be |
|
|
267 | taken into consideration. |
|
|
268 | |
|
|
269 | =item output intermixing |
|
|
270 | |
|
|
271 | Your program might wish to print messages (for example, log messages) to |
|
|
272 | STDOUT or STDERR. This will usually cause confusion, unless readline is |
|
|
273 | hidden with the hide method. |
|
|
274 | |
|
|
275 | =back |
|
|
276 | |
|
|
277 | Oh, and the above list is probably not complete. |
|
|
278 | |
245 | =head1 AUTHOR, CONTACT, SUPPORT |
279 | =head1 AUTHOR, CONTACT, SUPPORT |
246 | |
280 | |
247 | Marc Lehmann <schmorp@schmorp.de> |
281 | Marc Lehmann <schmorp@schmorp.de> |
248 | http://software.schmorp.de/pkg/AnyEvent-Readline-Gnu.html |
282 | http://software.schmorp.de/pkg/AnyEvent-Readline-Gnu.html |
249 | |
283 | |