home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume4 / snapshot / h29.c < prev    next >
Encoding:
Text File  |  1989-02-03  |  643 b   |  37 lines

  1. /*
  2.  * h29.c
  3.  */
  4.  
  5. /*
  6.  * Save the current cursor position.
  7.  */
  8. h29_savepos()
  9. {
  10.     printf("\033j");
  11. }
  12.  
  13. /*
  14.  * Restore the initial cursor position.
  15.  */
  16. h29_restorepos()
  17. {
  18.     printf("\033k");
  19. }
  20.  
  21. /*
  22.  * Tell the terminal to transmit a line.
  23.  */
  24. h29_transline(line)
  25.     int     line;
  26. {
  27.     /* Locate cursor at start of next line. */
  28.     printf("\033Y%c ", line + 32);
  29.     /*
  30.      * Send "transmit line" code.  This will send the whole line, padding to
  31.      * 80 columns with spaces.  Due to graphics and special mode codes, which
  32.      * will be sent as well, it could end up being well over 80 characters
  33.      * long. 
  34.      */
  35.     printf("\033^");
  36. }
  37.