<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.utilspec.cmdline.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'book.readline.php',
    1 => 'Readline',
    2 => 'GNU Readline',
  ),
  'up' => 
  array (
    0 => 'refs.utilspec.cmdline.php',
    1 => 'Estensioni specifiche della linea di comando',
  ),
  'prev' => 
  array (
    0 => 'refs.utilspec.cmdline.php',
    1 => 'Estensioni specifiche della linea di comando',
  ),
  'next' => 
  array (
    0 => 'readline.setup.php',
    1 => 'Installazione/Configurazione',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/readline/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.readline.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.readline" class="book">
 
 <h1 class="title">GNU Readline</h1>
 

 
 <div id="intro.readline" class="preface">
  <h1 class="title">Introduzione</h1>
  <p class="simpara">
   The readline functions implement an interface
   to the GNU Readline library. These are functions that provide
   editable command lines. An example being the way Bash allows you
   to use the arrow keys to insert characters or scroll through
   command history. Because of the interactive nature of this
   library, it will be of little use for writing Web applications,
   but may be useful when writing scripts used from a
   <a href="features.commandline.php" class="link">command line</a>.
  </p>
  <p class="simpara">
   As of PHP 7.1.0 this extension is supported on Windows.
  </p>
  <div class="caution"><strong class="caution">Attenzione</strong>
   <p class="simpara">
    The readline extension is not thread-safe! Thus, the usage of it with any
    true thread safe SAPI (like Apache mod_winnt) is strongly discouraged.
   </p>
  </div>
 </div>
 

 




 




 







<ul class="chunklist chunklist_book"><li><a href="readline.setup.php">Installazione/Configurazione</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="readline.requirements.php">Requisiti</a></li><li><a href="readline.installation.php">Installazione</a></li><li><a href="readline.configuration.php">Configurazione di Runtime</a></li></ul></li><li><a href="readline.constants.php">Costanti predefinite</a></li><li><a href="ref.readline.php">Readline Funzioni</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.readline.php">readline</a> — Reads a line</li><li><a href="function.readline-add-history.php">readline_add_history</a> — Adds a line to the history</li><li><a href="function.readline-callback-handler-install.php">readline_callback_handler_install</a> — Initializes the readline callback interface and terminal, prints the prompt and returns immediately</li><li><a href="function.readline-callback-handler-remove.php">readline_callback_handler_remove</a> — Removes a previously installed callback handler and restores terminal settings</li><li><a href="function.readline-callback-read-char.php">readline_callback_read_char</a> — Reads a character and informs the readline callback interface when a line is received</li><li><a href="function.readline-clear-history.php">readline_clear_history</a> — Clears the history</li><li><a href="function.readline-completion-function.php">readline_completion_function</a> — Registers a completion function</li><li><a href="function.readline-info.php">readline_info</a> — Gets/sets various internal readline variables</li><li><a href="function.readline-list-history.php">readline_list_history</a> — Lists the history</li><li><a href="function.readline-on-new-line.php">readline_on_new_line</a> — Inform readline that the cursor has moved to a new line</li><li><a href="function.readline-read-history.php">readline_read_history</a> — Reads the history</li><li><a href="function.readline-redisplay.php">readline_redisplay</a> — Redraws the display</li><li><a href="function.readline-write-history.php">readline_write_history</a> — Writes the history</li></ul></li></ul></div><?php manual_footer($setup); ?>