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

int VTScreenBuffer_shift_row ( VTScreenBuffer buf,
int  num_line 
)

shifting rows.

Parameters:
*buf reference to Buffer object to destruct
num_line number of line to shift. positive number will shift up, negative number will shift down the buffer
Returns:
0 if succeeded else 1

Definition at line 264 of file screen_buffer.c.

References _VTScreenBuf::num_rows.

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


Generated by  Doxygen 1.6.0   Back to index