19b50d902SRodney W. Grimes.\" Copyright (c) 1990, 1993 29b50d902SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 39b50d902SRodney W. Grimes.\" 49b50d902SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by 59b50d902SRodney W. Grimes.\" Michael Rendell. 69b50d902SRodney W. Grimes.\" 79b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 89b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions 99b50d902SRodney W. Grimes.\" are met: 109b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 119b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 129b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 139b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 149b50d902SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 159b50d902SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 169b50d902SRodney W. Grimes.\" must display the following acknowledgement: 179b50d902SRodney W. Grimes.\" This product includes software developed by the University of 189b50d902SRodney W. Grimes.\" California, Berkeley and its contributors. 199b50d902SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 209b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 219b50d902SRodney W. Grimes.\" without specific prior written permission. 229b50d902SRodney W. Grimes.\" 239b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 249b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 259b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 269b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 279b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 289b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 299b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 309b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 319b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 329b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 339b50d902SRodney W. Grimes.\" SUCH DAMAGE. 349b50d902SRodney W. Grimes.\" 359b50d902SRodney W. Grimes.\" @(#)col.1 8.1 (Berkeley) 6/29/93 36c3aac50fSPeter Wemm.\" $FreeBSD$ 379b50d902SRodney W. Grimes.\" 389b50d902SRodney W. Grimes.Dd June 29, 1993 399b50d902SRodney W. Grimes.Dt COL 1 409b50d902SRodney W. Grimes.Os 419b50d902SRodney W. Grimes.Sh NAME 429b50d902SRodney W. Grimes.Nm col 439b50d902SRodney W. Grimes.Nd filter reverse line feeds from input 449b50d902SRodney W. Grimes.Sh SYNOPSIS 458fe908efSRuslan Ermilov.Nm 46844518ffSMike Heffner.Op Fl bfhpx 479b50d902SRodney W. Grimes.Op Fl l Ar num 489b50d902SRodney W. Grimes.Sh DESCRIPTION 499b50d902SRodney W. Grimes.Nm Col 509b50d902SRodney W. Grimesfilters out reverse (and half reverse) line feeds so that the output is 519b50d902SRodney W. Grimesin the correct order with only forward and half forward line 529b50d902SRodney W. Grimesfeeds, and replaces white-space characters with tabs where possible. 539b50d902SRodney W. GrimesThis can be useful in processing the output of 549b50d902SRodney W. Grimes.Xr nroff 1 559b50d902SRodney W. Grimesand 569b50d902SRodney W. Grimes.Xr tbl 1 . 579b50d902SRodney W. Grimes.Pp 589b50d902SRodney W. Grimes.Nm Col 599b50d902SRodney W. Grimesreads from the standard input and writes to the standard output. 609b50d902SRodney W. Grimes.Pp 619b50d902SRodney W. GrimesThe options are as follows: 62a292105aSPhilippe Charnier.Bl -tag -width indent 639b50d902SRodney W. Grimes.It Fl b 649b50d902SRodney W. GrimesDo not output any backspaces, printing only the last character 659b50d902SRodney W. Grimeswritten to each column position. 669b50d902SRodney W. Grimes.It Fl f 679b50d902SRodney W. GrimesForward half line feeds are permitted (``fine'' mode). 689b50d902SRodney W. GrimesNormally characters printed on a half line boundary are printed 699b50d902SRodney W. Grimeson the following line. 7043d665c0SDima Dorfman.It Fl h 7143d665c0SDima DorfmanDon't output multiple spaces instead of tabs (default). 72844518ffSMike Heffner.It Fl p 73844518ffSMike HeffnerForce unknown control sequences to be passed through unchanged. 74844518ffSMike HeffnerNormally, 75844518ffSMike Heffner.Nm 76844518ffSMike Heffnerwill filter out any control sequences from the input other than those 77844518ffSMike Heffnerrecognized and interpreted by itself, which are listed below. 789b50d902SRodney W. Grimes.It Fl x 799b50d902SRodney W. GrimesOutput multiple spaces instead of tabs. 809b50d902SRodney W. Grimes.It Fl l Ar num 819b50d902SRodney W. GrimesBuffer at least 829b50d902SRodney W. Grimes.Ar num 839b50d902SRodney W. Grimeslines in memory. 849b50d902SRodney W. GrimesBy default, 128 lines are buffered. 859b50d902SRodney W. Grimes.El 869b50d902SRodney W. Grimes.Pp 879b50d902SRodney W. GrimesThe control sequences for carriage motion that 88a292105aSPhilippe Charnier.Nm 899b50d902SRodney W. Grimesunderstands and their decimal values are listed in the following 909b50d902SRodney W. Grimestable: 919b50d902SRodney W. Grimes.Pp 929b50d902SRodney W. Grimes.Bl -tag -width "carriage return" -compact 939b50d902SRodney W. Grimes.It ESC\-7 949b50d902SRodney W. Grimesreverse line feed (escape then 7) 959b50d902SRodney W. Grimes.It ESC\-8 969b50d902SRodney W. Grimeshalf reverse line feed (escape then 8) 979b50d902SRodney W. Grimes.It ESC\-9 989b50d902SRodney W. Grimeshalf forward line feed (escape then 9) 999b50d902SRodney W. Grimes.It backspace 1009b50d902SRodney W. Grimesmoves back one column (8); ignored in the first column 1019b50d902SRodney W. Grimes.It carriage return 1029b50d902SRodney W. Grimes(13) 1039b50d902SRodney W. Grimes.It newline 1049b50d902SRodney W. Grimesforward line feed (10); also does carriage return 1059b50d902SRodney W. Grimes.It shift in 1069b50d902SRodney W. Grimesshift to normal character set (15) 1079b50d902SRodney W. Grimes.It shift out 1089b50d902SRodney W. Grimesshift to alternate character set (14) 1099b50d902SRodney W. Grimes.It space 1109b50d902SRodney W. Grimesmoves forward one column (32) 1119b50d902SRodney W. Grimes.It tab 1129b50d902SRodney W. Grimesmoves forward to next tab stop (9) 1139b50d902SRodney W. Grimes.It vertical tab 1149b50d902SRodney W. Grimesreverse line feed (11) 1159b50d902SRodney W. Grimes.El 1169b50d902SRodney W. Grimes.Pp 1179b50d902SRodney W. GrimesAll unrecognized control characters and escape sequences are 1189b50d902SRodney W. Grimesdiscarded. 1199b50d902SRodney W. Grimes.Pp 1209b50d902SRodney W. Grimes.Nm Col 1219b50d902SRodney W. Grimeskeeps track of the character set as characters are read and makes 1229b50d902SRodney W. Grimessure the character set is correct when they are output. 1239b50d902SRodney W. Grimes.Pp 1249b50d902SRodney W. GrimesIf the input attempts to back up to the last flushed line, 125a292105aSPhilippe Charnier.Nm 1269b50d902SRodney W. Grimeswill display a warning message. 1279b50d902SRodney W. Grimes.Sh SEE ALSO 1289b50d902SRodney W. Grimes.Xr expand 1 , 1299b50d902SRodney W. Grimes.Xr nroff 1 , 1309b50d902SRodney W. Grimes.Xr tbl 1 1319b50d902SRodney W. Grimes.Sh HISTORY 1329b50d902SRodney W. GrimesA 133a292105aSPhilippe Charnier.Nm 1349b50d902SRodney W. Grimescommand 1350f778506SMike Pritchardappeared in 1360f778506SMike Pritchard.At v6 . 137