add ttymode support for all examples missing it and uses randr or vidmode, except the xmonad example becuase xmonad does not run in tty

Signed-off-by: Mattias Andrée <maandree@operamail.com>