emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/term.c


From: Juri Linkov
Subject: [Emacs-diffs] Changes to emacs/src/term.c
Date: Mon, 22 Aug 2005 16:47:50 -0400

Index: emacs/src/term.c
diff -c emacs/src/term.c:1.166 emacs/src/term.c:1.167
*** emacs/src/term.c:1.166      Sun Aug  7 17:35:09 2005
--- emacs/src/term.c    Mon Aug 22 20:47:49 2005
***************
*** 2011,2034 ****
  
    if (TN_max_colors > 0)
      {
!       char *p;
  
!       if (fg >= 0 && TS_set_foreground)
        {
!         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)
        {
!         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);
        }
--- 2011,2030 ----
  
    if (TN_max_colors > 0)
      {
!       char *ts, *p;
  
!       ts = standout_mode ? TS_set_background : TS_set_foreground;
!       if (fg >= 0 && ts)
        {
!         p = tparam (ts, NULL, 0, (int) fg);
          OUTPUT (p);
          xfree (p);
        }
  
!       ts = standout_mode ? TS_set_foreground : TS_set_background;
!       if (bg >= 0 && ts)
        {
!         p = tparam (ts, NULL, 0, (int) bg);
          OUTPUT (p);
          xfree (p);
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]