home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC1.ZIP / INSLINE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.5 KB  |  58 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.  *      C/C++ Run Time Library - Version 5.0
  11.  *
  12.  *      Copyright (c) 1987, 1992 by Borland International
  13.  *      All Rights Reserved.
  14.  *
  15.  */
  16.  
  17.  
  18. #include <_video.h>
  19. #include <conio.h>
  20.  
  21.  
  22. /*---------------------------------------------------------------------*
  23.  
  24. Name            insline  - inserts a line of text
  25.  
  26. Usage           void insline(void);
  27.  
  28. Prototype in    conio.h
  29.  
  30. Description     inserts a line of text at the current row position.
  31.  
  32. *---------------------------------------------------------------------*/
  33. void insline(void)
  34. /* Inserts a line at the current line */
  35. {
  36.         __scroll(DOWN, _video.windowx1, _wherey(),
  37.         _video.windowx2, _video.windowy2, 1);
  38. } /* insline */
  39.  
  40.  
  41. /*---------------------------------------------------------------------*
  42.  
  43. Name            delline  - deletes a line of text
  44.  
  45. Usage           void delline(void);
  46.  
  47. Prototype in    conio.h
  48.  
  49. Description     deletes the current line of text.
  50.  
  51. *---------------------------------------------------------------------*/
  52. void delline(void)
  53. /* Deletes the current line on the screen */
  54. {
  55.         __scroll(UP, _video.windowx1, _wherey(),
  56.         _video.windowx2, _video.windowy2, 1);
  57. } /* delline */
  58.