[BACK]Return to tty.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tty.c between version 1.432 and 1.433

version 1.432, 2023/07/13 06:03:48 version 1.433, 2023/09/02 09:17:23
Line 2814 
Line 2814 
                         gc->us = c;                          gc->us = c;
         }          }
   
         /* Underscore colour is set as RGB so convert. */          /* Convert underscore colour if only RGB can be supported. */
         if ((c = colour_force_rgb (gc->us)) == -1)          if (!tty_term_has(tty->term, TTYC_SETULC1)) {
                 gc->us = 8;                      if ((c = colour_force_rgb (gc->us)) == -1)
         else                              gc->us = 8;
                 gc->us = c;                      else
                               gc->us = c;
           }
 }  }
   
 static void  static void
Line 2898 
Line 2900 
                 goto save;                  goto save;
         }          }
   
         /* Must be an RGB colour - this should never happen. */          /*
         if (~gc->us & COLOUR_FLAG_RGB)           * If this is not an RGB colour, use Setulc1 if it exists, otherwise
            * convert.
            */
           if (~gc->us & COLOUR_FLAG_RGB) {
                   c = gc->us;
                   if ((~c & COLOUR_FLAG_256) && (c >= 90 && c <= 97))
                           c -= 82;
                   tty_putcode_i(tty, TTYC_SETULC1, c & ~COLOUR_FLAG_256);
                 return;                  return;
           }
   
         /*          /*
          * Setulc and setal follows the ncurses(3) one argument "direct colour"           * Setulc and setal follows the ncurses(3) one argument "direct colour"

Legend:
Removed from v.1.432  
changed lines
  Added in v.1.433