1 .\" $NetBSD: vis.1,v 1.23 2015/05/24 19:42:39 christos Exp $
3 .\" Copyright (c) 1989, 1991, 1993, 1994
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)vis.1 8.4 (Berkeley) 4/19/94
37 .Nd display non-printable characters in a visual format
40 .Op Fl abcfhlMmNnoSstw
46 is a filter for converting non-printable characters
47 into a visual representation.
51 the form is unique and invertible.
52 By default, all non-graphic
53 characters except space, tab, and newline are encoded.
54 A detailed description of the
55 various visual formats is given in
58 The options are as follows:
61 Encode all characters, whether originally visible or not.
64 Turns off prepending of backslash before up-arrow control sequences
65 and meta characters, and disables the doubling of backslashes.
67 produces output which is neither invertible or precise, but does
68 represent a minimum of change to the input.
73 Request a format which displays a small subset of the
74 non-printable characters using C-style backslash sequences.
77 Also encode characters in
84 to fold output lines to foldwidth columns (default 80), like
87 that a hidden newline sequence is used, (which is removed
88 when inverting the file back to its original form with
90 If the last character in the encoded file does not end in a newline,
91 a hidden newline sequence is appended to the output.
93 the output usable with various editors and other utilities which
94 typically don't work with partial lines.
99 Encode using the URI encoding from RFC 1808.
102 Mark newlines with the visible sequence
104 followed by the newline.
106 Encode all shell meta characters (implies
112 Encode using the MIME Quoted-Printable encoding from RFC 2045.
117 flag which encodes using the
119 locale, removing any encoding dependencies caused by the current
120 locale settings specified in the environment.
122 Turns off any encoding, except for the fact that backslashes are
123 still doubled and hidden newline sequences inserted if
128 When combined with the
133 an invertible version of the
136 That is, the output can be unfolded by running the output through
139 Request a format which displays non-printable characters as
140 an octal number, \eddd.
143 Encode shell meta-characters that are non-white space or glob.
146 Only characters considered unsafe to send to a terminal are encoded.
147 This flag allows backspace, bell, and carriage return in addition
148 to the default space, tab and newline.
151 Tabs are also encoded.
154 White space (space-tab-newline) is also encoded.
157 .Sh MULTIBYTE CHARACTER SUPPORT
159 supports multibyte character input.
160 The encoding conversion is influenced by the setting of the
162 environment variable which defines the set of characters that can be
163 copied without encoding.
165 When 8-bit data is present in the input,
167 must be set to the correct locale or to the C locale.
168 If the locales of the data and the conversion are mismatched, multibyte
169 character recognition may fail and encoding will be performed byte-by-byte
172 .Bl -tag -width ".Ev LC_CTYPE"
174 Specify the locale of the input data.
175 Set to C if the input data locale is unknown.
186 Multibyte character support was added in