This is tui.h in view mode; [Download] [Up]
/* * tui.h - A (very) simple text-based user interface. * * Written by * Ettore Perazzoli (ettore@comm2000.it) * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. * */ #ifndef _TUI_H #define _TUI_H #include <conio.h> #include <stdarg.h> #include "tuifs.h" #include "types.h" #include "tui_backend.h" #define CENTER_X(w) ((tui_num_cols() - (w)) / 2) #define CENTER_Y(h) ((tui_num_lines() - (h)) / 2) #ifdef MIN #undef MIN #endif #ifdef MAX #undef MAX #endif #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) void tui_error(const char *format, ...); void tui_message(const char *format, ...); int tui_ask_confirmation(const char *format, ...); int tui_input_string(const char *title, const char *prompt, char *buf, int buflen); #endif /* _TUI_H */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.