From: Juri Linkov Date: Thu, 30 Jun 2005 14:57:50 +0000 (+0000) Subject: (turn_on_face): In standout mode apply specified X-Git-Tag: emacs-pretest-22.0.90~8545 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b08f2c11b41c6af501dbce3a0b50bf5921da362;p=emacs.git (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). --- diff --git a/src/term.c b/src/term.c index c0eb7be8d56..452427f6ddc 100644 --- a/src/term.c +++ b/src/term.c @@ -2005,14 +2005,20 @@ turn_on_face (f, face_id) 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); }