Mercurial > emacs
diff src/term.c @ 63880:fcb82265bda4
(turn_on_face): In standout mode apply specified
fg to bg, and specified bg to fg (this makes the logic of
inversion on terminal consistent with X).
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Thu, 30 Jun 2005 14:57:50 +0000 |
parents | bda22724fc82 |
children | a8fa7c632ee4 efa9e4606e7e |
line wrap: on
line diff
--- a/src/term.c Thu Jun 30 14:56:48 2005 +0000 +++ b/src/term.c Thu Jun 30 14:57:50 2005 +0000 @@ -2005,14 +2005,20 @@ if (fg >= 0 && TS_set_foreground) { - p = tparam (TS_set_foreground, NULL, 0, (int) fg); + if (standout_mode) + p = tparam (TS_set_background, NULL, 0, (int) fg); + else + p = tparam (TS_set_foreground, NULL, 0, (int) fg); OUTPUT (p); xfree (p); } if (bg >= 0 && TS_set_background) { - p = tparam (TS_set_background, NULL, 0, (int) bg); + if (standout_mode) + p = tparam (TS_set_foreground, NULL, 0, (int) bg); + else + p = tparam (TS_set_background, NULL, 0, (int) bg); OUTPUT (p); xfree (p); }