aboutsummaryrefslogtreecommitdiff
path: root/ja_JP.eucJP/man/man1/col.1
blob: 836b7b6d2e7077d418d6dfa5fec8655220d3994b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.\" Copyright (c) 1990, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Michael Rendell.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)col.1	8.1 (Berkeley) 6/29/93
.\" %FreeBSD: src/usr.bin/col/col.1,v 1.4.2.2 2000/12/08 15:13:26 ru Exp %
.\" jpman %Id: col.1,v 1.3 1997/07/22 09:21:29 mutoh Stab %
.\"
.Dd June 29, 1993
.Dt COL 1
.Os
.Sh 名称
.Nm col
.Nd 入力から逆行送り (reverse line feed) を取り除くフィルタ
.Sh 書式
.Nm col
.Op Fl bfx
.Op Fl l Ar num
.Sh 解説
.Nm col
は、出力が順方向の行送りと半行送りで正しい順序になるように逆行送り
(と半逆行送り) を取り除き、空白をなるべくタブに置き換えます。
これは、
.Xr nroff 1
と
.Xr tbl  1
の出力を処理する場合に便利です。
.Pp
.Nm col
は標準入力を読み込み、標準出力に出力します。
.Pp
オプションには以下のものがあります。
.Bl -tag -width indent 
.It Fl b
バックスペースを出力せず、各桁の位置に最後に書かれた文字だけを
表示します。
.It Fl f
順方向の半行送りを許します(``詳細 (fine) '' モード)。
半行送りの境界に打たれる文字は、通常次の行に表示されます。
.It Fl x
タブのかわりに複数の空白を出力します。
.It Fl l Ar num
メモリに、少なくとも
.Ar num
行をバッファリングします。
デフォルトで 128 行までバッファリングされます。
.El
.Pp
.Nm
が理解できる復帰動作の制御文字とその 10 進値の一覧を以下の表に示します。
.Pp
.Bl -tag -width "carriage return" -compact
.It ESC\-7
逆行送り (エスケープ 7)
.It ESC\-8
半逆行送り (エスケープ 8)
.It ESC\-9
半行送り (エスケープ 9)
.It backspace
一桁戻る (8); 最初の桁では無視されます
.It carriage return
(13)
.It newline
改行 (10); 復帰動作も同時に行ないます
.It shift in
通常の文字セットにシフトします (15)
.It shift out
異なる文字セットにシフトします (14)
.It space
一桁移動します (32)
.It tab
次のタブストップまで移動します (9)
.It vertical tab
逆行送り (11)
.El
.Pp
認識できないすべての制御文字とエスケープシーケンスは捨てられます。
.Pp
.Nm
は、読み込まれた通りに文字セットの移り変わりを記憶し、
出力時に文字セットが正しくなるようにします。
.Pp
入力が最後に表示された行に戻ろうとすると、
.Nm
は警告メッセージを表示します。
.Sh 関連項目
.Xr expand 1 ,
.Xr nroff 1 ,
.Xr tbl 1
.Sh 歴史
.Nm
コマンドは
.At v6
から登場しました。