ready to 1.5.1-rc2
[manpages-zh.git] / src / man1 / col.1
blobc465fd5e8a8d541cc57a38c55e95ab431bf6df62
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 1991年6月17日 "COL 1"
38 .SH NAME(名称)
39 col \- 过滤掉输入中的反向换行符
40 .SH SYNOPSIS(总览)
41 .B col
43 .B -bfx
46 .B -l
47 .IR num
49 .SH DESCRIPTION(描述)
50 .B col
51 过滤掉反向(以及半反向)换行符(LF: line feed or NL: new line),
52 这样输出按正常顺序,即只包括正向和半正向换行符,
53 而且在可能的地方使用tab替换白空格.这对
54 nroff(1)
55
56 tbl(1)
57 的输出处理很有用处.
58 .PP
59 .B col
60 从标准输出读入,并写出到标准输出上.
61 .PP
62 选项如下:
63 .TP 
65 不输出任何退格符,在每列的位置上只打印最后写的那个字符.
66 .TP 
68 允许正向半换行符(``fine''模式).
69 通常,处于半行分界线上的字符打印在下一行.
70 .TP 
72 输出多个空格以替换tab.
73 .TP 
74 -l num
75 在内存中至少缓冲
76 .IR num
77 行.
78 默认情况下,缓冲128行.
79 .PP
80 .B col
81 所能理解的用于回车操作的控制序列以及它们的十进制值都列在下面的表中:
82 .PP
83 .IP ESC\-7
84 反向换行符(escape后接7)
85 .IP ESC\-8
86 反向半换行符(escape后接8)
87 .IP ESC\-9
88 正向半换行符(escape后接9)
89 .IP backspace
90 反向移动一列(8);在第一列则忽略.
91 .TP 
92 carriage return
93 (13)
94 .IP newline
95 正向换行符(10);同时执行回车(carriage return)操作
96 .TP 
97 shift in
98 转到正常字符集(15)
99 .TP 
100 shift out
101 转到备选的字符集(14)
102 .IP space
103 正向移动一列(32)
104 .IP tab
105 正向移动到下一个tab(9)
106 .TP 
107 vertical tab
108 反向换行符(11)
110 丢弃所有不被承认的控制字符和escape序列.
112 当读取字符时,
113 .B col
114 保持着与字符集的联系,而且在输出时确保字符集是正确的.
116 如果输入设备试图回复到最近被刷新的行,
117 .B col
118 会显示一条警告消息.
119 .SH SEE ALSO(另见)
120 .BR expand (1)
121 .BR nroff (1)
122 .BR tbl (1)
123 .SH HISTORY(历史)
124 .B col
125 命令出现于AT&T UNIX版本6.
126 .SH "[中文版维护人]"
127 .B riser <boomer@ccidnet.com>
128 .SH "[中文版最新更新]" 
129 2000/12/6
130 .SH 《中国Linux论坛man手册页翻译计划》:
131 .B http://cmpp.linuxforum.net