cvs: phpdoc-fr /reference/readline configure.xml reference.xml /reference/readline/functions readline-clear-history.xml
readline-completion-function.xml readline-list-history.xml readline-read-history.xml readline-write-history.xml readline.xml

From: Date: Mon, 23 Jun 2003 11:26:31 +0000
Subject: cvs: phpdoc-fr /reference/readline configure.xml reference.xml /reference/readline/functions readline-clear-history.xml
readline-completion-function.xml readline-list-history.xml readline-read-history.xml readline-write-history.xml readline.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-558@lists.php.net to get a copy of this message
dams Mon Jun 23 07:26:31 2003 EDT Added files: /phpdoc-fr/reference/readline configure.xml Modified files: /phpdoc-fr/reference/readline reference.xml /phpdoc-fr/reference/readline/functions readline-clear-history.xml readline-completion-function.xml readline-list-history.xml readline-read-history.xml readline-write-history.xml readline.xml Log: Keep up with en tree

Index: phpdoc-fr/reference/readline/reference.xml diff -u phpdoc-fr/reference/readline/reference.xml:1.2 phpdoc-fr/reference/readline/reference.xml:1.3 --- phpdoc-fr/reference/readline/reference.xml:1.2 Mon Apr 15 20:54:56 2002 +++ phpdoc-fr/reference/readline/reference.xml Mon Jun 23 07:26:31 2003 @@ -2,9 +2,11 @@ <reference id="ref.readline"> <title>Readline (GNU)</title> <titleabbrev>Readline</titleabbrev> - <partintro> - <simpara> - Les fonctions <function>readline</function> impl&eacute;mente une interface + <partintro> + <section id="readline.intro"> + &reftitle.intro; + <para> + Les fonctions readline impl&eacute;mente une interface avec la librairie GNU Readline. Ces fonctions fournissent une ligne de commande &eacute;ditable, un peu comme lorsque Bash vous permet d'utiliser les fl&egrave;ches de d&eacute;placement pour ins&eacute;rer un caract&egrave;re ou @@ -12,14 +14,43 @@ ces commande, elles ne seront que rarement utiles pour les applications Web, mais peuvent se r&eacute;v&eacute;ler utiles lorsqu'un script est ex&eacute;cut&eacute; depuis une commande shell. - </simpara> - <simpara> - Le site du projet GNU Readline est - <ulink url="&url.readline;">&url.readline;</ulink>. Elle est entretenue - par Chet Ramey, qui est aussi l'auteur de Bash. - </simpara> - </partintro> + </para> + &note.no-windows.extension; + </section> + + <section id="readline.requirements"> + &reftitle.required; + <para> + Pour utiliser les fonctions readline, vous devez installer la + librairie libreadline. Vous pouvez la trouver sur la page + du projet GNU, &agrave; <ulink url="&url.readline;">&url.readline;</ulink>. + Elle est maintenue par Chet Ramey, qui est l'auteur de Bash. + </para> + <para> + Vous pouvez aussi utiliser ces fonctions avec la librairie libedit, un remplacement de + la librairie readline, qui n'est pas GPL. La librairie libedit est sous license BSD, + et elle est disponible depuis <ulink url="&url.readline;">&url.libedit;</ulink>. + </para> + </section> + +&reference.readline.configure; + <section id="readline.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="readline.resources"> + &reftitle.resources; + &no.resource; + </section> + + <section id="readline.constants"> + &reftitle.constants; + &no.constants; + </section> + </partintro> + &reference.readline.functions; </reference> Index: phpdoc-fr/reference/readline/functions/readline-clear-history.xml diff -u phpdoc-fr/reference/readline/functions/readline-clear-history.xml:1.1 phpdoc-fr/reference/readline/functions/readline-clear-history.xml:1.2 --- phpdoc-fr/reference/readline/functions/readline-clear-history.xml:1.1 Sun Apr 14 20:37:36 2002 +++ phpdoc-fr/reference/readline/functions/readline-clear-history.xml Mon Jun 23 07:26:31 2003 @@ -9,8 +9,8 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>readline_clear_history</methodname> - <methodparam><type>void</type><parameter/></methodparam> + <type>bool</type><methodname>readline_clear_history</methodname> + <void/> </methodsynopsis> <para> <function>readline_clear_history</function> efface tout l'historique. Index: phpdoc-fr/reference/readline/functions/readline-completion-function.xml diff -u phpdoc-fr/reference/readline/functions/readline-completion-function.xml:1.1 phpdoc-fr/reference/readline/functions/readline-completion-function.xml:1.2 --- phpdoc-fr/reference/readline/functions/readline-completion-function.xml:1.1 Sun Apr 14 20:37:36 2002 +++ phpdoc-fr/reference/readline/functions/readline-completion-function.xml Mon Jun 23 07:26:31 2003 @@ -9,7 +9,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>readline_completion_function</methodname> + <type>bool</type><methodname>readline_completion_function</methodname> <methodparam><type>string</type><parameter>line</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/readline/functions/readline-list-history.xml diff -u phpdoc-fr/reference/readline/functions/readline-list-history.xml:1.1 phpdoc-fr/reference/readline/functions/readline-list-history.xml:1.2 --- phpdoc-fr/reference/readline/functions/readline-list-history.xml:1.1 Sun Apr 14 20:37:36 2002 +++ phpdoc-fr/reference/readline/functions/readline-list-history.xml Mon Jun 23 07:26:31 2003 @@ -10,12 +10,13 @@ <title>Description</title> <methodsynopsis> <type>array</type><methodname>readline_list_history</methodname> - <methodparam><type>void</type><parameter/></methodparam> + <void/> </methodsynopsis> <para> <function>readline_list_history</function> retourne un tableau avec la liste de toutes les lignes de commandes de l'historique. - Les &eacute;l&eacute;ments sont ind&eacute;x&eacute;s num&eacute;riquement, &agrave; partir de 0. + Les &eacute;l&eacute;ments sont ind&eacute;x&eacute;s num&eacute;riquement, + &agrave; partir de 0. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/readline/functions/readline-read-history.xml diff -u phpdoc-fr/reference/readline/functions/readline-read-history.xml:1.1 phpdoc-fr/reference/readline/functions/readline-read-history.xml:1.2 --- phpdoc-fr/reference/readline/functions/readline-read-history.xml:1.1 Sun Apr 14 20:37:37 2002 +++ phpdoc-fr/reference/readline/functions/readline-read-history.xml Mon Jun 23 07:26:31 2003 @@ -9,7 +9,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>readline_read_history</methodname> + <type>bool</type><methodname>readline_read_history</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/readline/functions/readline-write-history.xml diff -u phpdoc-fr/reference/readline/functions/readline-write-history.xml:1.1 phpdoc-fr/reference/readline/functions/readline-write-history.xml:1.2 --- phpdoc-fr/reference/readline/functions/readline-write-history.xml:1.1 Sun Apr 14 20:37:37 2002 +++ phpdoc-fr/reference/readline/functions/readline-write-history.xml Mon Jun 23 07:26:31 2003 @@ -9,7 +9,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>readline_write_history</methodname> + <type>bool</type><methodname>readline_write_history</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Index: phpdoc-fr/reference/readline/functions/readline.xml diff -u phpdoc-fr/reference/readline/functions/readline.xml:1.1 phpdoc-fr/reference/readline/functions/readline.xml:1.2 --- phpdoc-fr/reference/readline/functions/readline.xml:1.1 Sun Apr 14 20:37:37 2002 +++ phpdoc-fr/reference/readline/functions/readline.xml Mon Jun 23 07:26:31 2003 @@ -22,17 +22,22 @@ <example> <title>Exemple avec <function>readline</function></title> <programlisting role="php"> -&lt;?php +<![CDATA[ +<?php //Lit 3 commandes de l'utilisateur -for ($i=0; $i &lt; 3; $i++) { - $line = readline("Commande: "); +for ($i=0; $i < 3; $i++) { + $line = readline("Commande : "); readline_add_history($line); } -//liste l'historique + +//Liste l'historique print_r(readline_list_history()); + //liste les variables print_r(readline_info()); -?&gt; + +?> +]]> </programlisting> </example> </refsect1> Index: phpdoc-fr/reference/readline/configure.xml +++ phpdoc-fr/reference/readline/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <section id="readline.installation"> &reftitle.install; <para> Pour utiliser ces fonctions, vous devez compiler &php;, en version CGI ou CLI. Vous devez aussi utiliser l'option de compilation <option role="configure">--with-readline[=DIR]</option>. Si vous souhaitez utiliser la librairie libedit readline, en remplacement, compilez &php; avec l'option <option role="configure">--with-libedit[=DIR]</option>. </para> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.fr (#558) next »