Logo Search packages:      
Sourcecode: iterm version File versions  Download package

int VTScreenBuffer_shift_row_with_margin ( VTScreenBuffer buf,
int  shift_start_row,
int  shift_end_row,
int  num_line 
)

shifting rows with margin.

Parameters:
*buf reference to Buffer object to destruct
shift_start_row row of start to scroll. must be 0<=, <shift_end_row
shift_end_row row of end of scroll exclusive. must be shift_start_row <, <=buf->num_rows
num_line number of line to shit up/down, positive number will shift up, negative number shift down
Returns:
0 if succeeded else 1 requires shift_start_row < shift_end_row.

Definition at line 214 of file screen_buffer.c.

{
  if(num_line < 0)
      return VTScreenBuffer_shiftdown_with_margin(buf,
                                                  shift_start_row,
                                                  shift_end_row,
                                                  -num_line);
  else
      return VTScreenBuffer_shiftup_with_margin(buf,
                                                shift_start_row,
                                                shift_end_row,
                                                num_line);
}


Generated by  Doxygen 1.6.0   Back to index