uTools-Manuals/docs/linux/resize.html
2019-04-08 23:22:26 +08:00

26 lines
1.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="resize">resize</h1>
<p>命令设置终端机视窗的大小。</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>resize命令</strong> 命令设置终端机视窗的大小。执行resize指令可设置虚拟终端机的视窗大小。</p>
<h3 id="语法">语法</h3>
<pre><code>resize [-cu][-s &lt;列数&gt; &lt;行数&gt;]</code></pre>
<h3 id="选项">选项</h3>
<pre><code>-c  就算用户环境并非C Shell也用C Shell指令改变视窗大小。
-s &lt;列数&gt; &lt;行数&gt;  设置终端机视窗的垂直高度和水平宽度。
-u  就算用户环境并非Bourne Shell也用Bourne Shell指令改变视窗大小。</code></pre>
<h3 id="实例">实例</h3>
<p>使用 C shell</p>
<pre><code>[root@localhost ~]# resize -c
set noglob;
setenv COLUMNS &#39;99&#39;;
setenv LINES &#39;34&#39;;
unset noglob;</code></pre>
<p>使用 Bourne shell</p>
<pre><code>[root@localhost ~]# resize -u
COLUMNS=99;
LINES=34;
export COLUMNS LINES;</code></pre>
<p>设置指定大小</p>
<pre><code>[root@localhost ~]# resize -s 80 160</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->