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

Diff for /src/usr.bin/tmux/tty-features.c between version 1.6 and 1.7

version 1.6, 2020/05/16 14:16:25 version 1.7, 2020/05/16 14:22:51
Line 34 
Line 34 
  *   *
  * Also:   * Also:
  * - XT is used to decide whether to send DA and XDA;   * - XT is used to decide whether to send DA and XDA;
  * - DECSLRM and DECFRA use a flag instead of capabilities;   * - DECFRA uses a flag instead of capabilities;
  * - UTF-8 is a separate flag on the client; needed for unattached clients.   * - UTF-8 is a separate flag on the client; needed for unattached clients.
  */   */
   
Line 84 
Line 84 
 static struct tty_feature tty_feature_rgb = {  static struct tty_feature tty_feature_rgb = {
         "RGB",          "RGB",
         tty_feature_rgb_capabilities,          tty_feature_rgb_capabilities,
         (TERM_256COLOURS|TERM_RGBCOLOURS)          TERM_256COLOURS|TERM_RGBCOLOURS
 };  };
   
 /* Terminal supports 256 colours. */  /* Terminal supports 256 colours. */
Line 159 
Line 159 
 };  };
   
 /* Terminal supports DECSLRM margins. */  /* Terminal supports DECSLRM margins. */
   static const char *tty_feature_margins_capabilities[] = {
           "Enmg=\\E[?69h",
           "Dsmg=\\E[?69l",
           "Clmg=\\E[s",
           "Cmg=\\E[%i%p1%d;%p2%ds",
           NULL
   };
 static struct tty_feature tty_feature_margins = {  static struct tty_feature tty_feature_margins = {
         "margins",          "margins",
         NULL,          tty_feature_margins_capabilities,
         TERM_DECSLRM          TERM_DECSLRM
 };  };
   
Line 193 
Line 200 
         const struct tty_feature         *tf;          const struct tty_feature         *tf;
         char                             *next, *loop, *copy;          char                             *next, *loop, *copy;
         u_int                             i;          u_int                             i;
   
           log_debug("%s: %s", __func__, s);
   
         loop = copy = xstrdup(s);          loop = copy = xstrdup(s);
         while ((next = strsep(&loop, separators)) != NULL) {          while ((next = strsep(&loop, separators)) != NULL) {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7