home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d4xx / d430 / smartfields.lha / SmartFields / Functions / con_page_length.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-11  |  581 b   |  23 lines

  1. /***************************************
  2. *  CONsole PAGE LENGTH v1.11
  3. *  © Copyright 1988 Timm Martin
  4. *  All Rights Reserved
  5. ****************************************/
  6.  
  7. #include <exec/io.h>
  8. #include <exec/types.h>
  9. #include <console/console.h>
  10. #include <console/functions.h>
  11.  
  12. UBYTE cpl__escdata[] = { CSI, '1', '2', '3', 't' };
  13.  
  14. void con_page_length( wreq, length )
  15.   struct IOStdReq *wreq;
  16.   int    length;
  17. {
  18.   cpl__escdata[1] = (length / 100) + '0';
  19.   cpl__escdata[2] = (length / 10) % 10 + '0';
  20.   cpl__escdata[3] = (length % 10) + '0';
  21.   con_write( wreq, &cpl__escdata[0], 5 );
  22. }
  23.