1 unstable release

Uses old Rust 2015

0.1.0 Jan 22, 2019

#19 in #append

MIT license

5KB
108 lines

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 more C 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)
  • gcc

Example

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

Shout yourself

make run

License

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


lib.rs:

Shout it out!

Example

assert_eq!("I AM NOT SHOUTING!!!1!", stdshout::shout("i am not shouting"));

No runtime deps