File: vis.3

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (258 lines) | stat: -rw-r--r-- 6,682 bytes parent folder | download | duplicates (5)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
.\"	$OpenBSD: vis.3,v 1.3 1996/08/19 08:27:34 tholo Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" 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.
.\"
.\" Japanese Version Copyright (c) 2000 Yuichi SATO
.\"         all rights reserved.
.\" Translated Thu Dec 14 18:22:51 JST 2000
.\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
.\"
.\"WORD:	visual representation	ɽǽʸ
.\"
.Dd June 9, 1993
.Dt VIS 3
.Os "Linux NetKit (0.17)"
.Sh ̾
.Nm vis
.Nd ʸɽǽʸ˥󥳡ɤ
.Sh 
.Fd #include <vis.h>
.Ft char *
.Fn vis "char *dst" "char c" "int flag" "char nextc"
.Ft int 
.Fn strvis "char *dst" "char *src" "int flag"
.Ft int 
.Fn strvisx "char *dst" "char *src" "int len" "int flag"
.Sh 
.Fn vis
ؿϡʸ
.Fa c
ɽʸ
.Fa dst
˥ԡ롣
.Fa c
򥨥󥳡ɤɬפʤ硢ѹ˥ԡ롣
ʸ NUL ʸǽü졢ʸκǸʸؤΥݥ󥿤֤롣
󥳡ɤ줿ʸκĹ 4 ʸǤ (Ǹ
.Dv NUL ʸ
ϴޤޤʤ)
äơʣʸХåե˥󥳡ɤ硢
Хåե礭ϡ֥󥳡ɤʸο 4  + Ǹ
.Dv NUL ʸ
Τ 1 ʸפǤʤФʤʤ
 flag ϡ󥳡ɤޤɽǽʸѹʸ
ǥեȤϰϤѹ롣
¾ʸ
.Fa nextc
ϡ󥳡ɥեޥå
.Dv VIS_CSTYLE
(ʲ) 򤹤ˤΤ߻Ȥ롣
.Pp
.Fn strvis

.Fn strvisx
ؿϡ
ʸ
.Fa src
ɽǽʸˤΤ
.Fa dst
˥ԡ롣
.Fn strvis
ؿϡ
.Fa src

.Dv NUL ʸ 
ޤǥ󥳡ɤ롣
.Fn strvisx
ؿϡ
.Fa src
.Fa len
ʸʬ󥳡ɤ (
.Dv NUL
ޤǡ֥å򥨥󥳡ɤΤΩ)
ɤηǤ⡢
.Fa dst

.Dv NUL
ü롣
.Fa dst
礭ϡ󥳡ɤʸ
.Fa src
ο 4  (+
.Dv NUL
Τ 1 ʸʬ) ǤʤФʤʤ
ɤηǤ dst ʸ֤ (Ǹ
.Dv NUL
ϴޤޤʤ)
.Pp
󥳡ɤͣΤΤǡɽʸ鹽줿ĵɽˤʤäƤ롣
Ĥޤꡢ󥳡ɤ줿ʸϡ
.Xr unvis 3

.Xr strunvis 3
ؿѤƸη˥ǥɤ뤳ȤǤ롣
.Pp
ǽ 2 ĤΥѥ᡼:
󥳡ɤʸϰϤȻȤɽΥפǤ롣
ǥեȤǤϡڡ֡԰ʳɽʸ󥳡ɤ
.Ns ( Xr isgraph 3
򻲾)
ʲΥե饰ϡưѹ:
.Bl -tag -width VIS_WHITEX
.It Dv VIS_SP
ڡ⥨󥳡ɤ롣
.It Dv VIS_TAB		
֤⥨󥳡ɤ롣
.It Dv VIS_NL
Ԥ⥨󥳡ɤ롣
.It Dv VIS_WHITE	
.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