Imported upstream version 1.5
[manpages-zh.git] / src / man1 / col.1
blob2c4119dae20987cd41ea0c2c8f63f7163c728d80
1 .\" Copyright (c) 1990 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" This code is derived from software contributed to Berkeley by
5 .\" Michael Rendell.
6 .\"
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
9 .\" are met:
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\"    notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\"    notice, this list of conditions and the following disclaimer in the
14 .\"    documentation and/or other materials provided with the distribution.
15 .\" 3. All advertising materials mentioning features or use of this software
16 .\"    must display the following acknowledgement:
17 .\"     This product includes software developed by the University of
18 .\"     California, Berkeley and its contributors.
19 .\" 4. Neither the name of the University nor the names of its contributors
20 .\"    may be used to endorse or promote products derived from this software
21 .\"    without specific prior written permission.
22 .\"
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .\" SUCH DAMAGE.
34 .\"
35 .\"     @(#)col.1       6.8 (Berkeley) 6/17/91
36 .\"
37 .TH col 1
38 .Dd 1991年6月17日
39 .Dt COL 1
40 .Os
41 .Sh NAME(名称)
42 .Nm col
43 .Nd 过滤掉输入中的反向换行符
44 .Sh SYNOPSIS(总览)
45 .Nm col
46 .Op Fl bfx
47 .OP Fl l Ar num
48 .Sh DESCRIPTION(描述)
49 .Nm Col
50 过滤掉反向(以及半反向)换行符(LF: line feed or NL: new line),
51 这样输出按正常顺序,即只包括正向和半正向换行符,
52 而且在可能的地方使用tab替换白空格.这对
53 .Xr nroff 1
54
55 .Xr tbl  1
56 的输出处理很有用处.
57 .Pp
58 .Nm col
59 从标准输出读入,并写出到标准输出上.
60 .Pp
61 选项如下:
62 .Bl -tag -width "-lnum"
63 .It Fl b
64 不输出任何退格符,在每列的位置上只打印最后写的那个字符.
65 .It Fl f
66 允许正向半换行符(``fine''模式).
67 通常,处于半行分界线上的字符打印在下一行.
68 .It Fl x
69 输出多个空格以替换tab.
70 .It Fl l Ns Ar num
71 在内存中至少缓冲
72 .Ar num
73 行.
74 默认情况下,缓冲128行.
75 .El
76 .Pp
77 .Nm col
78 所能理解的用于回车操作的控制序列以及它们的十进制值都列在下面的表中:
79 .Pp
80 .Bl -tag -width "carriage return" -compact
81 .It ESC\-7
82 反向换行符(escape后接7)
83 .It ESC\-8
84 反向半换行符(escape后接8)
85 .It ESC\-9
86 正向半换行符(escape后接9)
87 .It backspace
88 反向移动一列(8);在第一列则忽略.
89 .It carriage return
90 (13)
91 .It newline
92 正向换行符(10);同时执行回车(carriage return)操作
93 .It shift in
94 转到正常字符集(15)
95 .It shift out
96 转到备选的字符集(14)
97 .It space
98 正向移动一列(32)
99 .It tab
100 正向移动到下一个tab(9)
101 .It vertical tab
102 反向换行符(11)
105 丢弃所有不被承认的控制字符和escape序列.
107 当读取字符时,
108 .Nm Col
109 保持着与字符集的联系,而且在输出时确保字符集是正确的.
111 如果输入设备试图回复到最近被刷新的行,
112 .Nm col
113 会显示一条警告消息.
114 .Sh SEE ALSO(另见)
115 .Xr expand 1 ,
116 .Xr nroff 1 ,
117 .Xr tbl 1
118 .Sh HISTORY(历史)
119 .Nm col
120 命令出现于AT&T UNIX版本6.
121 .Sh "[中文版维护人]"
122 .B riser <boomer@ccidnet.com>
123 .Sh "[中文版最新更新]" 
124 2000/12/6
125 .Sh 《中国Linux论坛man手册页翻译计划》:
126 .B http://cmpp.linuxforum.net