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

  1. cur_lf()
  2. /* Move the cursor one col to the left */
  3. {
  4.         int cur_row, cur_col;
  5.         get_cur(&cur_row,&cur_col);
  6.         cur_col--;
  7.         if(cur_col<0) {
  8.                 cur_row--;
  9.                 cur_col=79;
  10.                 if(cur_row<0) cur_row=24;
  11.         }
  12.         locate(cur_row,cur_col);
  13. }
  14.