1
0
mirror of https://git.zap.org.au/git/trader.git synced 2025-02-02 15:08:13 -05:00
trader/src/intf.h

71 lines
2.3 KiB
C
Raw Normal View History

/************************************************************************
* *
* Star Traders: A Game of Interstellar Trading *
* Copyright (C) 1990-2011, John Zaitseff *
* *
************************************************************************/
/*
Author: John Zaitseff <J.Zaitseff@zap.org.au>
$Id$
This file, intf.h, contains function declarations for basic text input/
output routines for Star Traders.
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 3 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, see http://www.gnu.org/licenses/.
*/
#ifndef included_INTF_H
#define included_INTF_H 1
#include "system.h"
/************************************************************************
* Constants and type declarations *
************************************************************************/
#define MIN_COLUMNS (80) /* Minimum number of columns in terminal */
#define MIN_LINES (24) /* Minimum number of lines in terminal */
#define OUTBUFSIZE (1024) /* Output string buffer size */
// Colour pairs used in Star Traders
enum color_pairs {
DEFAULT_COLORS = 0,
WHITE_ON_BLACK,
WHITE_ON_BLUE,
WHITE_ON_RED,
YELLOW_ON_CYAN,
BLACK_ON_WHITE,
};
/************************************************************************
* Basic text input/output function declarations *
************************************************************************/
extern void init_screen (void);
extern void end_screen (void);
extern int center (WINDOW *win, const bool clrline, const char *format, ...)
__attribute__((format (printf, 3, 4)));
#endif /* included_INTF_H */