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-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 13:58:08

bind中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-19 18:25:49

inittab中文man

2011-08-25 17:20:37

putchar中文man

2011-08-16 09:56:22

groupdel中文man

2011-08-23 16:56:57

swapon中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 10:21:40

blockdev中文man

2011-08-24 15:08:18

EXECUTE中文man

2011-08-15 11:15:06

newgrp中文man

2011-08-24 09:54:45

ANALYZE中文man

2011-08-24 15:29:06

grant中文man

2011-08-16 09:19:05

rmt中文man

2011-08-15 10:04:26

mail中文man

2011-08-23 15:27:21

route中文man

2011-08-29 10:39:12

fifo中文man
点赞
收藏

51CTO技术栈公众号