1 /********************************************************************/ 2 /* */ 3 /* trm_drv.h Driver for termcap and terminfo screen access */ 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/trm_drv.h */ 27 /* Changes: 1993, 1994 Thomas Mertes */ 28 /* Content: Driver for termcap and terminfo screen access */ 29 /* */ 30 /********************************************************************/ 31 32 #define putctln(s,n) ((s) != NULL ? tputs((s), (n), outch) : 0) 33 #define putctl(s) putctln((s), 1) 34 #define putstr(s) fputs((s), stdout) 35 #define putgoto(s,x,y) ((s) != NULL ? tputs(tgoto((s), (x), (y)), 1, outch) : 0) 36 37 #ifdef DO_INIT 38 boolType caps_initialized = FALSE; 39 #else 40 EXTERN boolType caps_initialized; 41 #endif 42 43 44 int getcaps (void); 45 #ifdef USE_TERMCAP 46 int outch (char ch); 47 #else 48 int outch (int ch); 49 #endif 50 void putcontrol (char *); 51