home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
273_01
/
scrollup.cc
< prev
next >
Wrap
Text File
|
1987-09-27
|
487b
|
18 lines
#include <dos.h>
scroll_up(int trow, int lcol,int brow, int rcol,int attr, int lines)
/* This will scroll the specified window up the specified number of lines.
SEE SCROLL_DN FOR DESCP. IF ARGS PASSED
*/
{
union REGS inregs;
inregs.h.bh = attr;
inregs.h.cl = lcol;
inregs.h.ch = trow;
inregs.h.dl = rcol;
inregs.h.dh = brow;
inregs.h.al = lines;
inregs.h.ah = 6; /* do the backscroll */
int86(0x10,&inregs,&inregs);
}