1 /********************************************************************/ 2 /* */ 3 /* con_drv.h Prototypes for console access functions. */ 4 /* Copyright (C) 1989 - 2005 Thomas Mertes */ 5 /* */ 6 /* This file is part of the Seed7 Runtime Library. */ 7 /* */ 8 /* The Seed7 Runtime Library is free software; you can */ 9 /* redistribute it and/or modify it under the terms of the GNU */ 10 /* Lesser General Public License as published by the Free Software */ 11 /* Foundation; either version 2.1 of the License, or (at your */ 12 /* option) any later version. */ 13 /* */ 14 /* The Seed7 Runtime Library is distributed in the hope that it */ 15 /* will be useful, but WITHOUT ANY WARRANTY; without even the */ 16 /* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */ 17 /* PURPOSE. See the GNU Lesser General Public License for more */ 18 /* details. */ 19 /* */ 20 /* You should have received a copy of the GNU Lesser General */ 21 /* Public License along with this program; if not, write to the */ 22 /* Free Software Foundation, Inc., 51 Franklin Street, */ 23 /* Fifth Floor, Boston, MA 02110-1301, USA. */ 24 /* */ 25 /* Module: Seed7 Runtime Library */ 26 /* File: seed7/src/con_drv.h */ 27 /* Changes: 1990, 1991, 1992, 1993, 1994, 2005 Thomas Mertes */ 28 /* Content: Prototypes for console access functions. */ 29 /* */ 30 /********************************************************************/ 31 32 #define black 0 33 #define green 2 34 #define lightgray 7 35 #define darkgray 8 36 #define yellow 14 37 #define white 15 38 39 40 #ifdef CONSOLE_WCHAR 41 typedef wstriType console_striType; 42 #else 43 typedef ustriType console_striType; 44 #endif 45 46 47 int conHeight (void); 48 int conWidth (void); 49 void conFlush (void); 50 void conCursor (boolType on); 51 void conSetCursor (intType lin, intType col); 52 #ifdef CONSOLE_USES_CON_TEXT 53 void conText (intType lin, intType col, console_striType stri, 54 memSizeType length); 55 #else 56 intType conColumn (void); 57 intType conLine (void); 58 void conWrite (const const_striType stri); 59 #endif 60 void conClear (intType startlin, intType startcol, 61 intType stoplin, intType stopcol); 62 void conUpScroll (intType startlin, intType startcol, 63 intType stoplin, intType stopcol, intType count); 64 void conDownScroll (intType startlin, intType startcol, 65 intType stoplin, intType stopcol, intType count); 66 void conLeftScroll (intType startlin, intType startcol, 67 intType stoplin, intType stopcol, intType count); 68 void conRightScroll (intType startlin, intType startcol, 69 intType stoplin, intType stopcol, intType count); 70 void conShut (void); 71 int conOpen (void); 72