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

Diff for /src/usr.bin/tmux/screen.c between version 1.71 and 1.72

version 1.71, 2021/06/10 07:24:10 version 1.72, 2021/06/10 07:36:47
Line 81 
Line 81 
         s->titles = NULL;          s->titles = NULL;
         s->path = NULL;          s->path = NULL;
   
         s->cstyle = 0;          s->cstyle = SCREEN_CURSOR_DEFAULT;
         s->ccolour = xstrdup("");          s->ccolour = xstrdup("");
         s->tabs = NULL;          s->tabs = NULL;
         s->sel = NULL;          s->sel = NULL;
Line 156 
Line 156 
 void  void
 screen_set_cursor_style(struct screen *s, u_int style)  screen_set_cursor_style(struct screen *s, u_int style)
 {  {
         if (style <= 6) {          switch (style)
                 s->cstyle = style;          {
           case 0:
                   s->cstyle = SCREEN_CURSOR_DEFAULT;
                   break;
           case 1:
                   s->cstyle = SCREEN_CURSOR_BLOCK;
                   s->mode |= MODE_BLINKING;
                   break;
           case 2:
                   s->cstyle = SCREEN_CURSOR_BLOCK;
                 s->mode &= ~MODE_BLINKING;                  s->mode &= ~MODE_BLINKING;
                   break;
           case 3:
                   s->cstyle = SCREEN_CURSOR_UNDERLINE;
                   s->mode |= MODE_BLINKING;
                   break;
           case 4:
                   s->cstyle = SCREEN_CURSOR_UNDERLINE;
                   s->mode &= ~MODE_BLINKING;
                   break;
           case 5:
                   s->cstyle = SCREEN_CURSOR_BAR;
                   s->mode |= MODE_BLINKING;
                   break;
           case 6:
                   s->cstyle = SCREEN_CURSOR_BAR;
                   s->mode &= ~MODE_BLINKING;
                   break;
         }          }
 }  }
   

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72