GNU Readline
A readline() függvények a GNU Readline könyvtár használatát teszik lehetővé PHP-ből. Ezek a függvények egy szerkeszthető parancssort nyújtanak. Például ilyen a Bash, ami a kurzormozgató gombok használatával lehetőséget ad karakterek beszúrására, és a korábban kiadott parancsok visszakérésére. Ezen könyvtár interaktív természetéből fakadóan kis haszonnal bír Web alkalmazások tervezésekor, de hasznos lehet parancssorból futó programok írásakor.
A GNU Readline projekt honlapja a » https://cnswww.cns.cwru.edu/~chet/readline/rltop.html címen található. A honlapot Chet Ramey tartja fent, aki a Bash szerzője.
Table of Contents
- readline_add_history — Egy sort ad a 'history'-hoz
- readline_callback_handler_install — Initializes the readline callback interface and terminal, prints the prompt and returns immediately
- readline_callback_handler_remove — Removes a previously installed callback handler and restores terminal settings
- readline_callback_read_char — Reads a character and informs the readline callback interface when a line is received
- readline_clear_history — Törli a 'history'-t
- readline_completion_function — Regisztrál egy kiegészítést végző függvényt
- readline_info — Lekér/beállít egy belső readline változót
- readline_list_history — A 'history' listázása
- readline_on_new_line — Inform readline that the cursor has moved to a new line
- readline_read_history — Beolvassa a 'history'-t
- readline_redisplay — Redraws the display
- readline_write_history — Kimenti a 'history'-t
- readline — Beolvas egy sort