home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / INSLINE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.9 KB  |  60 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - insline.c
  3.  *
  4.  * function(s)
  5.  *        insline  -  inserts a line of text
  6.  *        delline  -  deletes a line of text
  7.  *-----------------------------------------------------------------------*/
  8.  
  9. /*[]------------------------------------------------------------[]*/
  10. /*|                                                              |*/
  11. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  12. /*|                                                              |*/
  13. /*|                                                              |*/
  14. /*|     Copyright (c) 1987,1988,1990 by Borland International    |*/
  15. /*|     All Rights Reserved.                                     |*/
  16. /*|                                                              |*/
  17. /*[]------------------------------------------------------------[]*/
  18.  
  19.  
  20. #include <_video.h>
  21. #include <conio.h>
  22.  
  23.  
  24. /*---------------------------------------------------------------------*
  25.  
  26. Name        insline  - inserts a line of text
  27.  
  28. Usage        void insline(void);
  29.  
  30. Prototype in    conio.h
  31.  
  32. Description    inserts a line of text at the current row position.
  33.  
  34. *---------------------------------------------------------------------*/
  35. void insline(void)
  36. /* Inserts a line at the current line */
  37. {
  38.     __scroll(DOWN, _video.windowx1, _wherey(),
  39.     _video.windowx2, _video.windowy2, 1);
  40. } /* insline */
  41.  
  42.  
  43. /*---------------------------------------------------------------------*
  44.  
  45. Name        delline  - deletes a line of text
  46.  
  47. Usage        void delline(void);
  48.  
  49. Prototype in    conio.h
  50.  
  51. Description    deletes the current line of text.
  52.  
  53. *---------------------------------------------------------------------*/
  54. void delline(void)
  55. /* Deletes the current line on the screen */
  56. {
  57.     __scroll(UP, _video.windowx1, _wherey(),
  58.     _video.windowx2, _video.windowy2, 1);
  59. } /* delline */
  60.