mirror of
https://git.zap.org.au/git/trader.git
synced 2024-12-04 14:46:45 -05:00
Move definition of "enum curs_type"; rename CURS_VERYVISIBLE
Rename CURS_VERYVISIBLE to CURS_VISIBLE to match the system documentation for Curses.
This commit is contained in:
parent
4279467e14
commit
ca64093a07
12
src/intf.h
12
src/intf.h
@ -39,8 +39,13 @@
|
||||
* Constants and type declarations *
|
||||
************************************************************************/
|
||||
|
||||
#define MIN_LINES (24) /* Minimum number of lines in terminal */
|
||||
#define MIN_COLS (80) /* Minimum number of columns in terminal */
|
||||
// Visibility of the cursor in Curses
|
||||
typedef enum curs_type {
|
||||
CURS_INVISIBLE = 0,
|
||||
CURS_NORMAL = 1,
|
||||
CURS_VISIBLE = 2
|
||||
} curs_type_t;
|
||||
|
||||
|
||||
/*
|
||||
This version of Star Traders only utilises WIN_COLS x WIN_LINES of a
|
||||
@ -48,6 +53,9 @@
|
||||
be added to each newwin() call to position the window correctly.
|
||||
*/
|
||||
|
||||
#define MIN_LINES (24) /* Minimum number of lines in terminal */
|
||||
#define MIN_COLS (80) /* Minimum number of columns in terminal */
|
||||
|
||||
#define WIN_LINES MIN_LINES /* Number of lines in main windows */
|
||||
#define WIN_COLS MIN_COLS /* Number of columns in main windows */
|
||||
|
||||
|
@ -75,15 +75,6 @@
|
||||
* Miscellaneous definitions *
|
||||
************************************************************************/
|
||||
|
||||
// Visibility of the cursor in Curses
|
||||
typedef enum curs_type {
|
||||
CURS_INVISIBLE = 0,
|
||||
CURS_NORMAL = 1,
|
||||
CURS_VISIBLE = 1,
|
||||
CURS_VERYVISIBLE = 2
|
||||
} curs_type_t;
|
||||
|
||||
|
||||
// Compiler __attributes__ for less-capable compilers
|
||||
#ifndef HAVE___ATTRIBUTE__
|
||||
# define __attribute__(x)
|
||||
|
Loading…
Reference in New Issue
Block a user