support for tabbar

foreground / background the "wrong" way round because the tabbar
ends up inheriting inverse video
Merge pull request #112 from csrhodes/master

support for tabbar
Merge remote-tracking branch 'upstream/master'