Encapsulate the display (2)

Remove the specific cases in the mainloop and encapsulate the 
display functions.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
4 files changed