home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 273_01 / curdn.cc < prev    next >
Encoding:
Text File  |  1987-09-25  |  293 b   |  12 lines

  1. cur_dn()
  2. /* Move the down one row. This will wrap the cursor to the top of
  3.    the screen if the cursor is on the last row
  4. */
  5. {
  6.         int cur_row, cur_col;
  7.         get_cur(&cur_row,&cur_col);
  8.         cur_row++;
  9.         if(cur_row>24) cur_row=0;
  10.         locate(cur_row,cur_col);
  11. }
  12.