ansi2text/ansi2text.1

65 lines
2.2 KiB
Groff
Raw Normal View History

2020-12-14 18:46:33 -05:00
ansi2text.1
.\" $NetBSD: colorbars.6,v 1.3 2012/06/09 23:15:13 njoly Exp $
.\"
.\" Copyright (c) 2012, 2013 Nathanial Sloss <nathanialsloss@yahoo.com.au>
.\" 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.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
.\"
.Dd July 28, 2013
.Dt ANSI2TEXT 1
.Os
.Sh NAME
.Nm ansi2text
.Nd formats ANSI text files or standard input for display
.Sh SYNOPSIS
.Nm
.Op Fl c
.Op Fl w Ar width
.Op Fl l Ar length
.Op Ar file
.Sh DESCRIPTION
The
.Nm
command formats ANSI text for display
.Bl -tag -width Ds
.It Fl c
Display formatted text in color suitable for display with less -R
.It Fl w Ar width
Display formatted text in with a maximum
.Ar width
in coloumns. Defaults to 80 coloumns.
.It Fl l Ar length
Display formatted text in with a maximum
.Ar length
(height) in rows. Defaults to 25 rows.
.It Ar file
File to display, if not specified standard input is used.
.Sh SEE ALSO
.Xr less 1
.Sh HISTORY
.Nm
appeared in
.Nx 7.0 .
.Sh AUTHORS
Nathanial Sloss