terminal: add wake-up/sleep logic
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 15 Aug 2012 07:24:45 +0000 (09:24 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 15 Aug 2012 07:24:45 +0000 (09:24 +0200)
commit40ef6f94919632c3aa11eb60527a0483c8a6a374
tree37ac4323919fc46fc3654cbdb46344cddf92aab9
parent2ba0cc5ec24704ecea3476ffc9fffd860146bc6b
terminal: add wake-up/sleep logic

Similar to the UI subsystem, we also need to be aware of our current state
inside of the terminal subsystem. We can now avoid rendering graphics when
not awake. This suppresses odd warnings that occured when keeping an
application active and printing in the terminal while the terminal was in
background.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/terminal.c
src/terminal.h
src/ui.c