Changeset View
Changeset View
Standalone View
Standalone View
contrib/vis/vis.1
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | |||||
character recognition may fail and encoding will be performed byte-by-byte | character recognition may fail and encoding will be performed byte-by-byte | ||||
instead. | instead. | ||||
.Sh ENVIRONMENT | .Sh ENVIRONMENT | ||||
.Bl -tag -width ".Ev LC_CTYPE" | .Bl -tag -width ".Ev LC_CTYPE" | ||||
.It Ev LC_CTYPE | .It Ev LC_CTYPE | ||||
Specify the locale of the input data. | Specify the locale of the input data. | ||||
Set to C if the input data locale is unknown. | Set to C if the input data locale is unknown. | ||||
.El | .El | ||||
.Sh EXAMPLES | |||||
Visualize characters encoding white spaces and tabs: | |||||
.Bd -literal -offset indent | |||||
$ echo -e "\\x10\\n\\t" | vis -w -t | |||||
\\^P\\012\\011\\012 | |||||
.Ed | |||||
.Pp | |||||
Same as above but using `\\$' for newline followed by an actual newline: | |||||
.Bd -literal -offset indent | |||||
$ echo -e "\\x10\\n\\t" | vis -w -t -l | |||||
\\^P\\$ | |||||
\\011\\$ | |||||
.Ed | |||||
.Pp | |||||
Visualize string using URI encoding: | |||||
.Bd -literal -offset indent | |||||
$ echo http://www.freebsd.org | vis -h | |||||
http%3a%2f%2fwww.freebsd.org%0a | |||||
.Ed | |||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr unvis 1 , | .Xr unvis 1 , | ||||
.Xr svis 3 , | .Xr svis 3 , | ||||
.Xr vis 3 | .Xr vis 3 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Nm | .Nm | ||||
command appears in | command appears in | ||||
.Bx 4.4 . | .Bx 4.4 . | ||||
Myltibyte character support was added in | Myltibyte character support was added in | ||||
.Nx 7.0 | .Nx 7.0 | ||||
and | and | ||||
.Fx 9.2 . | .Fx 9.2 . |