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

Diff for /src/usr.bin/mg/tty.c between version 1.35 and 1.36

version 1.35, 2015/03/19 21:48:05 version 1.36, 2015/11/18 18:44:50
Line 240 
Line 240 
 {  {
         int     i, nl;          int     i, nl;
   
         /* Case of one line insert is special. */          /* One line special cases */
         if (row == bot) {          if (row == bot) {
                 ttmove(row, 0);                  ttmove(row, 0);
                 tteeol();                  tteeol();
                 return;                  return;
         }          }
           /* Use scroll region and back index */
         if (change_scroll_region && scroll_reverse) {          if (change_scroll_region && scroll_reverse) {
                 /* Use scroll region and back index      */  
                 nl = bot - row;                  nl = bot - row;
                 ttwindow(row, bot);                  ttwindow(row, bot);
                 ttmove(row, 0);                  ttmove(row, 0);
Line 255 
Line 255 
                         putpad(scroll_reverse, nl);                          putpad(scroll_reverse, nl);
                 ttnowindow();                  ttnowindow();
                 return;                  return;
           /* else use insert/delete line */
         } else if (insdel) {          } else if (insdel) {
                 ttmove(1 + bot - nchunk, 0);                  ttmove(1 + bot - nchunk, 0);
                 nl = nrow - ttrow;                  nl = nrow - ttrow;
                 if (parm_delete_line)                  if (parm_delete_line)
                         putpad(tgoto(parm_delete_line, 0, nchunk), nl);                          putpad(tgoto(parm_delete_line, 0, nchunk), nl);
                 else                  else
                         /* For all lines in the chunk... */                          /* For all lines in the chunk */
                         for (i = 0; i < nchunk; i++)                          for (i = 0; i < nchunk; i++)
                                 putpad(delete_line, nl);                                  putpad(delete_line, nl);
                 ttmove(row, 0);                  ttmove(row, 0);
Line 313 
Line 314 
                 if (parm_delete_line)                  if (parm_delete_line)
                         putpad(tgoto(parm_delete_line, 0, nchunk), nl);                          putpad(tgoto(parm_delete_line, 0, nchunk), nl);
                 else                  else
                         /* For all lines in the chunk    */                          /* For all lines in the chunk */
                         for (i = 0; i < nchunk; i++)                          for (i = 0; i < nchunk; i++)
                                 putpad(delete_line, nl);                                  putpad(delete_line, nl);
                 ttmove(1 + bot - nchunk, 0);                  ttmove(1 + bot - nchunk, 0);
   
                 /* ttmove() changes ttrow */                  /* ttmove() changes ttrow */
                 nl = nrow - ttrow;                  nl = nrow - ttrow;
   
                 if (parm_insert_line)                  if (parm_insert_line)
                         putpad(tgoto(parm_insert_line, 0, nchunk), nl);                          putpad(tgoto(parm_insert_line, 0, nchunk), nl);
                 else                  else

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36