Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 1.42 KB

README.md

File metadata and controls

70 lines (47 loc) · 1.42 KB

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