You are not logged in.
Hi,
I wrote a simple text pager, it shows text in console. But it does it with animated transitions between pages, including matrix-style columns of random symbols trickling down the screen, leaving text after them.
Video: https://youtu.be/EuGp7daniX0
It can:
- read text from [multiple] files or stdin;
- output formatted text to screen with one of animations or into stdout (if it is redirected)
- available animations are none, matrix, reverse_matrix, fire, beam.
- run in interactive mode (default)
- run in non-interactive mode, autoscroll through text;
- run infinitely, reading files over and over again, until 'q' is pressed;
- centrate text vertically and horizontally (each string separately or using longest string, this is useful for ascii art)
- block until specified number of lines is read (it responds to commands while it is blocked), is stdin is used;
- show pages forward and backward;
You can find sources on github, https://github.com/dhurum/mattext/
Package in AUR: https://aur.archlinux.org/packages/mattext/
Last edited by Shuk (2015-12-01 20:05:56)
Offline
This is pretty cute Cool idea I like it.
Offline
This is pretty cute
Cool idea I like it.
Thank you for your feedback, I'm glad that someone found this program cool.
I made small code update, now mattext supports multibyte characters.
Offline
Haha, this is great. Not as frivolous as sl, but a pretty neat idea nonetheless.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I installed it via PKGBUILD. If I put 'mattext' in console I see only "darkness" any ideas?
Offline
It's a pager. Use it like less, more, most, vimpager, etc.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Oh I know what you mean now.. thanks
Offline
First thing I did after build was `mattext mattext.c`. Nice.
The CPU usage by urxvt and mattext is a bit high though (same thing with cmatrix)...
This silver ladybug at line 28...
Offline
This is so useless that I have installed it!
Thanks!
Cedric Girard
Offline
Two years later comes brand new version.
Code was rewritten, now it is much cleaner.
Animation became more smooth and much better looking.
Added half-width kana symbols (you can switch them off) and output colorization.
Added infinite-run mode, so you can somehow replicate cmatrix by running
echo "" | mattext -cni
I hope you will enjoy this new mattext: reloaded.
Last edited by Shuk (2013-11-09 19:16:12)
Offline
Multiple input files support added. Now you can make a slideshow with your logs or collection af ascii art.
Offline
New version is ready.
You can centrate text horizontally by longest string, it can be useful for ascii-art, option --centrate-horiz-longest.
Program doesn't block if stdin is used as text source.
Functional keys are now handled correctly (as one press, not multiple), exit on ctrl + D added.
Plus nasty memory corruption bug was fixed.
Also, I added some screenshots.
Offline
I have to install this on my work PC and start it running when people come to me with a problem. They'll think I'm doing something incredible complex and amazing, when all I'm actually doing is sshing into their machine and looking at their logs/clearing out their stockpile of ancient kernels.
"Hmm, yes, I see what the problem is: your data containment receptacles have become saturated with outdated conglomerations of modules and header files. I'm currently removing the excess of binary data, so your system will be fully operational again by the time you get back to your desk. Would you like a skittle?"
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
^ My friends think I'm hacking a video when they see mplayer's output...
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
New version (0.7.1) is ready.
I implemented all features I could imagine to be useful in this useless pager, so if you have any new ideas - please, share them with me.
Last edited by Shuk (2014-02-01 18:48:10)
Offline
Another year - another version.
New 0.8 can read files and pipes both forward and backward and has several animations: none, matrix, reverse_matrix, fire, beam.
You can take a look at them in this video: https://youtu.be/EuGp7daniX0
Offline