resize 中文man页面

系统
执行resize指令可设置虚拟终端机的视窗大小。

resize

功能说明:设置终端机视窗的大小。

语法:resize[-cu][-s<列数><行数>]

补充说明:执行resize指令可设置虚拟终端机的视窗大小。

参数

-c就算用户环境并非CShell,也用CShell指令改变视窗大小。

-s<列数><行数>设置终端机视窗的垂直高度和水平宽度。

-u就算用户环境并非BourneShell,也用BourneShell指令改变视窗大小。

#p#

NAME

resize - set TERMCAP and terminal settings to current xterm window size  

SYNOPSIS

resize [ -u | -c ] [ -s [ row col ] ]  

DESCRIPTION

Resize prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of xterm window from which the command is run. For this output to take effect, resize must either be evaluated as part of the command line (usually done with a shell alias or function) or else redirected to a file which can then be read in. From the C shell (usually known as /bin/csh), the following alias could be defined in the user's .cshrc:

        %  alias rs 'set noglob; eval `resize`'

After resizing the window, the user would type:

        %  rs

Users of versions of the Bourne shell (usually known as /bin/sh) that don't have command functions will need to send the output to a temporary file and the read it back in with the ``.'' command:

        $  resize > /tmp/out
        $  . /tmp/out

OPTIONS

The following options may be used with resize:

-u
This option indicates that Bourne shell commands should be generated even if the user's current shell isn't /bin/sh.
-c
This option indicates that C shell commands should be generated even if the user's current shell isn't /bin/csh.
-s [rows columns]
This option indicates that Sun console escape sequences will be used instead of the VT100-style xterm escape codes. If rows and columns are given, resize will ask the xterm to resize itself. However, the window manager may choose to disallow the change.

Note that the Sun console escape sequences are recognized by XFree86 xterm and by dtterm. The resize program may be installed as sunsize, which causes makes it assume the -s option.

The rows and columns arguments must appear last; though they are normally associated with the -s option, they are parsed separately.

FILES

/etc/termcap
for the base termcap entry to modify.
~/.cshrc
user's alias for the command.

SEE ALSO

csh(1), tset(1), xterm(1)  

责任编辑:韩亚珊 来源: 互联网
相关推荐

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:39:39

apm中文man

2011-08-11 17:10:55

cat中文man

2011-08-11 17:35:07

chgrp中文man

2011-08-11 17:53:06

chown中文man

2011-08-11 17:59:24

chsh中文man

2011-08-11 18:07:57

cksum中文man

2011-08-11 18:19:32

col中文man

2011-08-11 18:58:08

date中文man

2011-08-12 09:17:57

deallocvt中文man

2011-08-12 09:23:16

dig中文man

2011-08-12 10:15:13

dumpkeys中文man

2011-08-12 10:41:00

file中文man

2011-08-12 11:15:27

gzip中文man

2011-08-12 13:26:56

groff中文man

2011-08-12 14:10:47

install中文man

2011-08-12 14:58:05

killall中文man
点赞
收藏

51CTO技术栈公众号