<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ssh2.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.ssh2-shell-resize.php',
    1 => 'ssh2_shell_resize',
    2 => 'Change les dimensions du pseudo-terminal d\'un canal',
  ),
  'up' => 
  array (
    0 => 'ref.ssh2.php',
    1 => 'Fonctions SSH2',
  ),
  'prev' => 
  array (
    0 => 'function.ssh2-shell.php',
    1 => 'ssh2_shell',
  ),
  'next' => 
  array (
    0 => 'function.ssh2-tunnel.php',
    1 => 'ssh2_tunnel',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/ssh2/functions/ssh2-shell-resize.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ssh2-shell-resize" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ssh2_shell_resize</h1>
  <p class="verinfo">(PECL ssh2 &gt;= 1.4)</p><p class="refpurpose"><span class="refname">ssh2_shell_resize</span> &mdash; <span class="dc-title">Change les dimensions du pseudo-terminal d&#039;un canal</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ssh2-shell-resize-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">function</span> <span class="methodname"><strong>ssh2_shell_resize</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$channel</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$width</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$height</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$width_px</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$height_px</code><span class="initializer"> = 0</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Demande que le pseudo-terminal (PTY) attaché au <code class="parameter">channel</code>
   fourni soit redimensionné aux dimensions données.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="simpara">
    L&#039;extension ne déclare que les trois premiers paramètres, avec le nom
    <code class="literal">session</code> pour <code class="parameter">channel</code>. Par
    conséquent, <code class="parameter">width_px</code> et
    <code class="parameter">height_px</code> ne peuvent être fournis que
    positionnellement.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ssh2-shell-resize-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">channel</code></dt>
    <dd>
     <p class="simpara">
      Un flux de canal SSH, tel que retourné par <span class="function"><a href="function.ssh2-exec.php" class="function">ssh2_exec()</a></span>
      ou <span class="function"><a href="function.ssh2-shell.php" class="function">ssh2_shell()</a></span>.
     </p>
    </dd>
   
   
    <dt><code class="parameter">width</code></dt>
    <dd>
     <p class="simpara">
      La largeur du terminal, en caractères.
     </p>
    </dd>
   
   
    <dt><code class="parameter">height</code></dt>
    <dd>
     <p class="simpara">
      La hauteur du terminal, en caractères.
     </p>
    </dd>
   
   
    <dt><code class="parameter">width_px</code></dt>
    <dd>
     <p class="simpara">
      La largeur du terminal en pixels, ou <code class="literal">0</code> pour laisser
      les dimensions en pixels non spécifiées.
     </p>
    </dd>
   
   
    <dt><code class="parameter">height_px</code></dt>
    <dd>
     <p class="simpara">
      La hauteur du terminal en pixels, ou <code class="literal">0</code> pour laisser
      les dimensions en pixels non spécifiées.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ssh2-shell-resize-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> lorsque <code class="parameter">channel</code> n&#039;est pas
   un flux de canal SSH.
  </p>
  <p class="simpara">
   Le résultat de la demande de redimensionnement elle-même n&#039;est pas rapporté:
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> est retourné même lorsque l&#039;extrémité distante ne l&#039;honore pas.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.ssh2-shell-resize-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="simpara">
   Une erreur de niveau <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> est émise lorsque
   <code class="parameter">channel</code> n&#039;est pas un flux de canal SSH.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ssh2-shell-resize-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Redimensionnement du pseudo-terminal d&#039;un shell</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
$connection </span><span style="color: #007700">= </span><span style="color: #0000BB">ssh2_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">'shell.example.com'</span><span style="color: #007700">, </span><span style="color: #0000BB">22</span><span style="color: #007700">);
</span><span style="color: #0000BB">ssh2_auth_password</span><span style="color: #007700">(</span><span style="color: #0000BB">$connection</span><span style="color: #007700">, </span><span style="color: #DD0000">'username'</span><span style="color: #007700">, </span><span style="color: #DD0000">'password'</span><span style="color: #007700">);

</span><span style="color: #0000BB">$shell </span><span style="color: #007700">= </span><span style="color: #0000BB">ssh2_shell</span><span style="color: #007700">(</span><span style="color: #0000BB">$connection</span><span style="color: #007700">, </span><span style="color: #DD0000">'xterm'</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">80</span><span style="color: #007700">, </span><span style="color: #0000BB">24</span><span style="color: #007700">);

</span><span style="color: #FF8000">// Indique à l'extrémité distante que le terminal fait désormais 132 colonnes sur 43 lignes
</span><span style="color: #0000BB">ssh2_shell_resize</span><span style="color: #007700">(</span><span style="color: #0000BB">$shell</span><span style="color: #007700">, </span><span style="color: #0000BB">132</span><span style="color: #007700">, </span><span style="color: #0000BB">43</span><span style="color: #007700">);
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ssh2-shell-resize-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.ssh2-shell.php" class="function" rel="rdfs-seeAlso">ssh2_shell()</a> - Demande un shell interactif</span></li>
   <li><span class="function"><a href="function.ssh2-exec.php" class="function" rel="rdfs-seeAlso">ssh2_exec()</a> - Ex&eacute;cute une commande sur un serveur distant</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>