Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
man
 
 
 
 
 
 
 
 
 
 
Overview
========
center(1) is a commandline tool for centering text on your terminal screen. It takes no flags or
options, but only filenames. If no filenames are specified then it will read from standard input.
Additionally, if the filename supplied is '-', then it will read from standard input. This makes
center(1) behave similarly to the commandline tool cat(1). ANSI escape sequences are also detected
by the program to ensure that text with certain coloring or highlighting is not misaligned.


Usage examples
==============
	$ center lorem
		      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
				      Nam nec vestibulum urna.
				Nullam dapibus lacinia ullamcorper.
			  Suspendisse lobortis ultricies elit eget rutrum.
				   Pellentesque in maximus nisi.
	$ cal | center
					     April 2021
					Mo Tu We Th Fr Sa Su
						  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

	$ cal | center sech.bc -
					   define sech(x)
						 {
						return 1 / cosh(x)
						 }
					     April 2021
					Mo Tu We Th Fr Sa Su
						  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

	$

About

A commandline utility to center text on the terminal screen

Resources