Implement output part of console

You can now use putchar and puts instead of paint text directly.