Skip to content

GregTheMadMonk/libemotify-stderr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libemotify-stderr

A simple library that will spice up your stderr output.

DEMO GIF

libemotify-stderr replaces stderr file descriptor with a pipe and processes program output before redirecting it back to original stderr. All this to add emojis at the start of error lines. Or to make them colorful.

Building

Library is built using cmake and make. In repository directory:

mkdir build
cd build
cmake ..
make

How to use

Add the built .so to your LD_PRELOAD:

export LD_PRELOAD=/path/to/libemotify-stderr.so

or

LD_PRELOAD=/path/to/libemotify-stderr.so command

Envirnoment variable settings

  • EMOJIFY_COLORS=1 will enable coloring of the stderr output
  • EMOJIFY_REACTS=0 will disable emojis

Known issues

  • git (and some other programs probably) uses stderr for output and doesn't like this lib 😠

About

Spice up stderr output with emojis at line starts!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published