You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
791 B

7 years ago
resize
===
5 years ago
命令设置终端机视窗的大小
7 years ago
6 years ago
## 说明
7 years ago
5 years ago
**resize命令** 命令设置终端机视窗的大小。执行resize指令可设置虚拟终端机的视窗大小
7 years ago
5 years ago
## 选项
7 years ago
```
resize [-cu][-s <列数> <行数>]
```
6 years ago
7 years ago
```
5 years ago
-c  就算用户环境并非C Shell也用C Shell指令改变视窗大小
-s <列数> <行数>  设置终端机视窗的垂直高度和水平宽度
-u  就算用户环境并非Bourne Shell也用Bourne Shell指令改变视窗大小
7 years ago
```
5 years ago
## 实例
7 years ago
使用 C shell
```
[root@localhost ~]# resize -c
set noglob;
setenv COLUMNS '99';
setenv LINES '34';
unset noglob;
```
使用 Bourne shell
```
[root@localhost ~]# resize -u
COLUMNS=99;
LINES=34;
export COLUMNS LINES;
```
设置指定大小
```
[root@localhost ~]# resize -s 80 160
```
6 years ago