1 /* String input - Header 2 3 * Copyright (C) 1998 J.A. Bezemer 4 * 5 * Licensed under the terms of the GNU General Public License. 6 * ABSOLUTELY NO WARRANTY. 7 * See the file `COPYING' in this directory. 8 */ 9 10 #ifndef HAVE_STRINGINPUT_H 11 #define HAVE_STRINGINPUT_H 12 13 14 #define TREAT_DEL_AS_BACKSPACE 15 16 17 typedef struct 18 { 19 char *string; 20 int y; 21 int x; 22 int w; 23 int maxlen; 24 int cursorpos; 25 int firstcharonscreen; 26 } 27 stringinput_t; 28 29 extern void stringinput_display (stringinput_t * data); 30 31 extern void stringinput_stdkeys (int key, stringinput_t * data); 32 33 34 #endif /* HAVE_STRINGINPUT_H */ 35