Mercurial > emacs
changeset 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 | bb26dfdf2698 |
children | 0aba3ba80cd2 |
files | src/term.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
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); }