Skip to content

badboy/stdshout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STDSHOUT!!!1!

CAUTION: It will shout at you!!!1!

@Argorak: stdshout
@pobocks: now I kind of want a magic fd that assumes utf-8 and upcases everything and appends !!!1! to it.

It all started with a tweet and a reply.

Turns out it takes just a few lines of Rust to handle stuff as UTF-8 and append things. It's a bit more Rust code to turn that into your program's default stdout behaviour.

But with some tricky file descriptor redirection, forking and preloading we can turn your precious stdout into the shouting machine you always wanted.

Currently only works on Linux.

Requirements

  • rustc and cargo (any version)

Example

$ make run
$ echo Hello World
HELLO WORLD!!!1!

Shout yourself

make run

License

MIT LICENSE!!!1! SEE LICENSE!!!1!