consoles: Direct: Added a method printState(self, state).

This was mostly took from service.py in parallelism and modified a bit.

It is required for all outputs, but it may just be a stub.