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

  1. /***************************************
  2. *  CONsole TOP OFFSET v1.11
  3. *  © Copyright 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 cto__escdata[] = { CSI, '1', '2', '3', 'y' };
  13.  
  14. void con_top_offset( wreq, y )
  15.   struct IOStdReq *wreq;
  16.   int    y;
  17. {
  18.   cto__escdata[1] = (y / 100) + '0';
  19.   cto__escdata[2] = (y / 10) % 10 + '0';
  20.   cto__escdata[3] = (y % 10) + '0';
  21.   con_write( wreq, &cto__escdata[0], 5 );
  22. }
  23.