diff options
| author | Juri Linkov | 2005-06-30 14:57:50 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-06-30 14:57:50 +0000 |
| commit | 9b08f2c11b41c6af501dbce3a0b50bf5921da362 (patch) | |
| tree | 4ca2c7fd753ed996698d035503e75a48c49e0b52 /src/term.c | |
| parent | 7ecc34e9e6ef1d8ddf7a69664434732d49d40177 (diff) | |
| download | emacs-9b08f2c11b41c6af501dbce3a0b50bf5921da362.tar.gz emacs-9b08f2c11b41c6af501dbce3a0b50bf5921da362.zip | |
(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).
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 10 |
1 files changed, 8 insertions, 2 deletions
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) | |||
| 2005 | 2005 | ||
| 2006 | if (fg >= 0 && TS_set_foreground) | 2006 | if (fg >= 0 && TS_set_foreground) |
| 2007 | { | 2007 | { |
| 2008 | p = tparam (TS_set_foreground, NULL, 0, (int) fg); | 2008 | if (standout_mode) |
| 2009 | p = tparam (TS_set_background, NULL, 0, (int) fg); | ||
| 2010 | else | ||
| 2011 | p = tparam (TS_set_foreground, NULL, 0, (int) fg); | ||
| 2009 | OUTPUT (p); | 2012 | OUTPUT (p); |
| 2010 | xfree (p); | 2013 | xfree (p); |
| 2011 | } | 2014 | } |
| 2012 | 2015 | ||
| 2013 | if (bg >= 0 && TS_set_background) | 2016 | if (bg >= 0 && TS_set_background) |
| 2014 | { | 2017 | { |
| 2015 | p = tparam (TS_set_background, NULL, 0, (int) bg); | 2018 | if (standout_mode) |
| 2019 | p = tparam (TS_set_foreground, NULL, 0, (int) bg); | ||
| 2020 | else | ||
| 2021 | p = tparam (TS_set_background, NULL, 0, (int) bg); | ||
| 2016 | OUTPUT (p); | 2022 | OUTPUT (p); |
| 2017 | xfree (p); | 2023 | xfree (p); |
| 2018 | } | 2024 | } |