Implement console scaling on Linux

Fixes #12