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

Diff for /src/usr.bin/tmux/input.c between version 1.23 and 1.24

version 1.23, 2009/11/27 09:41:03 version 1.24, 2009/12/03 22:50:10
Line 230 
Line 230 
         ictx->string_len = 0;          ictx->string_len = 0;
         ictx->string_buf = NULL;          ictx->string_buf = NULL;
   
         memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell);          memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell);
   
         memcpy(&ictx->saved_cell, &grid_default_cell, sizeof ictx->saved_cell);          memcpy(&ictx->saved_cell, &grid_default_cell, sizeof ictx->saved_cell);
         ictx->saved_cx = 0;          ictx->saved_cx = 0;
Line 297 
Line 297 
         }          }
   
 #if 0  #if 0
         if (INPUT_C1CONTROL(ch)) {          if (INPUT_C1CONTROL(ch)) {
                 ch -= 0x40;                  ch -= 0x40;
                 if (ch == '[')                  if (ch == '[')
                         input_state(ictx, input_state_sequence_first);                          input_state(ictx, input_state_sequence_first);
Line 591 
Line 591 
   
         if (ch > 0x7f && options_get_number(&wp->window->options, "utf8")) {          if (ch > 0x7f && options_get_number(&wp->window->options, "utf8")) {
                 if (utf8_open(&ictx->utf8data, ch)) {                  if (utf8_open(&ictx->utf8data, ch)) {
                         log_debug2("-- utf8 size %zu: %zu: %hhu (%c)",                          log_debug2("-- utf8 size %zu: %zu: %hhu (%c)",
                             ictx->utf8data.size, ictx->off, ch, ch);                              ictx->utf8data.size, ictx->off, ch, ch);
                         input_state(ictx, input_state_utf8);                          input_state(ictx, input_state_utf8);
                         return;                          return;
Line 945 
Line 945 
                 return;                  return;
         if (n != 0)          if (n != 0)
                 return;                  return;
   
         bufferevent_write(wp->event, "\033[?1;2c", (sizeof "\033[?1;2c") - 1);          bufferevent_write(wp->event, "\033[?1;2c", (sizeof "\033[?1;2c") - 1);
 }  }
   
Line 1164 
Line 1164 
                         log_debug("kcursor on");                          log_debug("kcursor on");
                         break;                          break;
                 case 3:         /* DECCOLM */                  case 3:         /* DECCOLM */
                         screen_write_cursormove(&ictx->ctx, 0, 0);                          screen_write_cursormove(&ictx->ctx, 0, 0);
                         screen_write_clearscreen(&ictx->ctx);                          screen_write_clearscreen(&ictx->ctx);
                         break;                          break;
                 case 25:        /* TCEM */                  case 25:        /* TCEM */
Line 1240 
Line 1240 
                         log_debug("kcursor off");                          log_debug("kcursor off");
                         break;                          break;
                 case 3:         /* DECCOLM */                  case 3:         /* DECCOLM */
                         screen_write_cursormove(&ictx->ctx, 0, 0);                          screen_write_cursormove(&ictx->ctx, 0, 0);
                         screen_write_clearscreen(&ictx->ctx);                          screen_write_clearscreen(&ictx->ctx);
                         break;                          break;
                 case 25:        /* TCEM */                  case 25:        /* TCEM */
Line 1257 
Line 1257 
                         sx = screen_size_x(s);                          sx = screen_size_x(s);
                         sy = screen_size_y(s);                          sy = screen_size_y(s);
   
                         /*                          /*
                          * Exit alternative screen mode and restore the copied                           * Exit alternative screen mode and restore the copied
                          * grid.                           * grid.
                          */                           */
Line 1284 
Line 1284 
                          * Turn history back on (so resize can use it) and then                           * Turn history back on (so resize can use it) and then
                          * resize back to the current size.                           * resize back to the current size.
                          */                           */
                         wp->base.grid->flags |= GRID_HISTORY;                          wp->base.grid->flags |= GRID_HISTORY;
                         if (sy > wp->saved_grid->sy)                          if (sy > wp->saved_grid->sy)
                                 screen_resize(s, sx, sy);                                  screen_resize(s, sx, sy);
   
Line 1372 
Line 1372 
         if (ARRAY_LENGTH(&ictx->args) == 0) {          if (ARRAY_LENGTH(&ictx->args) == 0) {
                 attr = gc->attr;                  attr = gc->attr;
                 memcpy(gc, &grid_default_cell, sizeof *gc);                  memcpy(gc, &grid_default_cell, sizeof *gc);
                 gc->attr |= (attr & GRID_ATTR_CHARSET);                  gc->attr |= (attr & GRID_ATTR_CHARSET);
                 return;                  return;
         }          }
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24