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

Diff for /src/usr.bin/tmux/spawn.c between version 1.10 and 1.11

version 1.10, 2019/10/07 07:14:07 version 1.11, 2019/11/14 07:55:01
Line 217 
Line 217 
         u_int                     hlimit;          u_int                     hlimit;
         struct winsize            ws;          struct winsize            ws;
         sigset_t                  set, oldset;          sigset_t                  set, oldset;
           key_code                  key;
   
         spawn_log(__func__, sc);          spawn_log(__func__, sc);
   
Line 378 
Line 379 
   
         /*          /*
          * Update terminal escape characters from the session if available and           * Update terminal escape characters from the session if available and
          * force VERASE to tmux's \177.           * force VERASE to tmux's backspace.
          */           */
         if (tcgetattr(STDIN_FILENO, &now) != 0)          if (tcgetattr(STDIN_FILENO, &now) != 0)
                 _exit(1);                  _exit(1);
         if (s->tio != NULL)          if (s->tio != NULL)
                 memcpy(now.c_cc, s->tio->c_cc, sizeof now.c_cc);                  memcpy(now.c_cc, s->tio->c_cc, sizeof now.c_cc);
         now.c_cc[VERASE] = '\177';          key = options_get_number(global_options, "backspace");
           if (key >= 0x7f)
                   now.c_cc[VERASE] = '\177';
           else
                   now.c_cc[VERASE] = key;
         if (tcsetattr(STDIN_FILENO, TCSANOW, &now) != 0)          if (tcsetattr(STDIN_FILENO, TCSANOW, &now) != 0)
                 _exit(1);                  _exit(1);
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11