commit | bcddddf98d46bb9aef919d8e93b7328a7b040140 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Wed Aug 05 16:26:38 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Wed Aug 05 16:26:38 2009 +0000 |
tree | 08371106a8988983ca50dc6af2b8071116e798a3 | |
parent | 12ef3ceda13f9ae4c77384f98e6f145322971e69 [diff] |
If colours are not supported by the terminal, try to emulate a coloured background by setting or clearing the reverse attribute. This makes a few applications which don't use the reverse attribute themselves a little happier, and allows the status, message and mode options to have default attributes and fg/bg options that work as expected when set as reverse.