home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / termcap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-27  |  1.8 KB  |  63 lines

  1. /* Declarations for termcap library.
  2.    Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  3.  
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2, or (at your option)
  7.    any later version.
  8.  
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. #ifndef _TERMCAP_H
  19. #define _TERMCAP_H 1
  20.  
  21. #include <features.h>
  22. #include <termios.h>
  23. #include <sys/types.h>
  24.  
  25. extern char PC;
  26. extern char *UP;
  27. extern char *BC;
  28.  
  29. #ifdef __linux__
  30. extern speed_t ospeed;
  31. #else
  32. extern short ospeed;
  33. #endif
  34.  
  35. __BEGIN_DECLS
  36.  
  37. #if defined(__PMT)    /* XXX glibc-2.1 wants this */
  38. typedef int (*outfuntype) __PMT((int));
  39. #else
  40. typedef int (*outfuntype) __P((int));
  41. #endif
  42.  
  43. extern int tgetent __P((void *__buffer, __const char *__termtype));
  44. extern int tgetflag __P((__const char *__name));
  45. extern int tgetnum __P((__const char *__name));
  46. extern char *tgetstr __P((__const char *__name, char **__area));
  47. extern char *tgoto __P((__const char *__cstring, int __hpos,
  48.     int __vpos));
  49. extern char *tparam __P((__const char *__ctlstring, void *__buffer,
  50.     int __size, ...));
  51.  
  52. #if defined(__PMT)    /* XXX glibc-2.1 wants this */
  53. extern void tputs __P((__const char *__string, int __nlines,
  54.     int (*) __PMT((int))));
  55. #else
  56. extern void tputs __P((__const char *__string, int __nlines,
  57.     int (*) __P((int))));
  58. #endif
  59.  
  60. __END_DECLS
  61.  
  62. #endif /* not _TERMCAP_H */
  63.