/[emacs]/emacs/src/term.c
ViewVC logotype

Diff of /emacs/src/term.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.166 by rms, Sun Aug 7 17:35:09 2005 UTC revision 1.167 by jurta, Mon Aug 22 20:47:49 2005 UTC
# Line 2011  turn_on_face (f, face_id) Line 2011  turn_on_face (f, face_id)
2011    
2012    if (TN_max_colors > 0)    if (TN_max_colors > 0)
2013      {      {
2014        char *p;        char *ts, *p;
2015    
2016        if (fg >= 0 && TS_set_foreground)        ts = standout_mode ? TS_set_background : TS_set_foreground;
2017          if (fg >= 0 && ts)
2018          {          {
2019            if (standout_mode)            p = tparam (ts, NULL, 0, (int) fg);
             p = tparam (TS_set_background, NULL, 0, (int) fg);  
           else  
             p = tparam (TS_set_foreground, NULL, 0, (int) fg);  
2020            OUTPUT (p);            OUTPUT (p);
2021            xfree (p);            xfree (p);
2022          }          }
2023    
2024        if (bg >= 0 && TS_set_background)        ts = standout_mode ? TS_set_foreground : TS_set_background;
2025          if (bg >= 0 && ts)
2026          {          {
2027            if (standout_mode)            p = tparam (ts, NULL, 0, (int) bg);
             p = tparam (TS_set_foreground, NULL, 0, (int) bg);  
           else  
             p = tparam (TS_set_background, NULL, 0, (int) bg);  
2028            OUTPUT (p);            OUTPUT (p);
2029            xfree (p);            xfree (p);
2030          }          }

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.167

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26