home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume8 / hint / part01 / hinttab.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-24  |  1.4 KB  |  37 lines

  1. /* hinttab.h -- declarations for accessing the hinttab file
  2.    Copyright (C) 1989 David MacKenzie
  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 1, 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. /* Maximum length of termcap strings. */
  19. #define TCSLEN 20
  20.  
  21. /* Structure of record in hinttab.
  22.    These are the strings returned by tgetstr.  They will be run through
  23.    tputs when the hint is actually sent.
  24.  
  25.    Records are assigned in hinttab in first come, first served order.  */
  26. struct hinttab
  27. {
  28.   char h_tty[15];        /* Full pathname. */
  29.   char h_ts[TCSLEN];        /* Go to status line. */
  30.   char h_fs[TCSLEN];        /* Go from status line. */
  31.   char h_ds[TCSLEN];        /* Disable (clear) status line. */
  32.   char h_bl[TCSLEN];        /* Bell or visible bell. */
  33.   short h_ws;            /* Width (columns) of status line. */
  34. };
  35.  
  36. struct hinttab *gethttty ();
  37.