Skip to content

Display text vertically, for example create a vertical histogram from an horizontal input.

License

Notifications You must be signed in to change notification settings

opengk/verticalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

verticalize

Program capable of transforming any terminal output vertically, i.e. the horizontal text is translated vertically.

Prerequisites

You will need:

  • a terminal
  • a c compiler

It runs in a terminal as a command line program. It is a c file, it can therefore be compiled on any system (I guess). On linux use can gcc.

Warning

No special warning unless I have to improve the code to make it work with big files. However, the aim is to output small texts in a terminal window and therefore converting big amount of text does not really make sense.

Installing

Compile on linux by running:

make
sudo make install

For cleaning things do a simple:

make clean

Use

Syntax is the following:

verticalize [FILE]

You can also pipe into verticalize like:

cat [FILE] | verticalize

Or simply run the following to enter some text and end with Enter and EOF signal (CTRL-D):

verticalize

Vertical text starts by default from top. To start from bottom use option -b (--bottom-start) as:

verticalize -b

NOTE 1: tabs are converted to 1 space NOTE 2: some special characters might show wrongly for now

Author

License

  • This project is licensed under the GNU GPL version 3 - see the LICENSE.md file for details.

Acknowledgments

  • Kernighan and Ritchie's Learning C
  • Linux 'coreutils' programs

About

Display text vertically, for example create a vertical histogram from an horizontal input.

Resources

License

Stars

Watchers

Forks

Packages

No packages published