mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-03-03 03:20:41 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,23 +3,23 @@
|
||||
<h2 id="补充说明">补充说明</h2>
|
||||
<p><strong>resize命令</strong> 命令设置终端机视窗的大小。执行resize指令可设置虚拟终端机的视窗大小。</p>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>resize [-cu][-s <列数> <行数>]</code></pre>
|
||||
<pre><code class="language-bash">resize [-cu][-s <列数> <行数>]</code></pre>
|
||||
<h3 id="选项">选项</h3>
|
||||
<pre><code>-c 就算用户环境并非C Shell,也用C Shell指令改变视窗大小。
|
||||
<pre><code class="language-bash">-c 就算用户环境并非C Shell,也用C Shell指令改变视窗大小。
|
||||
-s <列数> <行数> 设置终端机视窗的垂直高度和水平宽度。
|
||||
-u 就算用户环境并非Bourne Shell,也用Bourne Shell指令改变视窗大小。</code></pre>
|
||||
<h3 id="实例">实例</h3>
|
||||
<p>使用 C shell</p>
|
||||
<pre><code>[root@localhost ~]# resize -c
|
||||
<pre><code class="language-bash">[root@localhost ~]# resize -c
|
||||
set noglob;
|
||||
setenv COLUMNS '99';
|
||||
setenv LINES '34';
|
||||
unset noglob;</code></pre>
|
||||
<p>使用 Bourne shell</p>
|
||||
<pre><code>[root@localhost ~]# resize -u
|
||||
<pre><code class="language-bash">[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>
|
||||
<pre><code class="language-bash">[root@localhost ~]# resize -s 80 160</code></pre>
|
||||
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
|
||||
|
||||
Reference in New Issue
Block a user