1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-07-07 15:54:14 -04:00

Redefine the cursor type as an enum instead of as macros

This commit is contained in:
John Zaitseff 2011-07-02 12:47:51 +10:00
parent e8590e68eb
commit d5951adb4f

View File

@ -72,10 +72,12 @@
************************************************************************/
// Visibility of the cursor in Curses
#define CURS_INVISIBLE (0)
#define CURS_NORMAL (1)
#define CURS_VISIBLE (1)
#define CURS_VERYVISIBLE (2)
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