1 /* tinyterm.h -- Minimalist information on the terminal 2 Copyright (C) 1998 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 Foundation, 16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 17 18 #ifndef _TINYTERM_H_ 19 #define _TINYTERM_H_ 20 21 #ifndef PARAMS 22 # if defined PROTOTYPES || defined __STDC__ 23 # define PARAMS(Args) Args 24 # else 25 # define PARAMS(Args) () 26 # endif 27 #endif 28 29 struct tterm; 30 31 /* Initialize TTERM taking the environment into account (for line 32 width, and tabsize) for STREAM. */ 33 void tterm_initialize PARAMS ((struct tterm *tterm, FILE *stream)); 34 35 /* Set the line width of TTERM to WIDTH. Returns the previous value. */ 36 size_t tterm_width_set PARAMS ((struct tterm *tterm, size_t width)); 37 38 /* Return the line width of TTERM. */ 39 size_t tterm_width PARAMS ((struct tterm *tterm)); 40 41 /* Set the tab size of TTERM to SIZE. Returns the previous value. */ 42 size_t tterm_tabsize_set PARAMS ((struct tterm *tterm, size_t size)); 43 44 /* Return the tab size of TTERM. */ 45 size_t tterm_tabsize PARAMS ((struct tterm *tterm)); 46 47 #endif /* ! _TINYTERM_H_ */ 48