-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ncurses 'menu' library can now be built and used with PDCursesMod…
…, and the ncurses program 'demo_menus' built and used to test it out.
- Loading branch information
Showing
4 changed files
with
96 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <curses.h> | ||
|
||
#define NCURSES_SP_NAME(name) name | ||
#define NCURSES_API | ||
#define T(a) | ||
#define returnAttr(code) return code | ||
#define returnBool(code) return code | ||
#define returnCode(code) return code | ||
#define returnCPtr(code) return code | ||
#define returnPtr(code) return code | ||
#define returnVoidPtr(code) return code | ||
#define returnWin(code) return code | ||
#define CURRENT_SCREEN SP | ||
#define NCURSES_INLINE inline | ||
#define Min(a,b) ((a) > (b) ? (b) : (a)) | ||
#define TR_FUNC_BFR(max) | ||
#define NCURSES_SP_DCLx | ||
|
||
#define StdScreen(sp) stdscr | ||
#define UChar(c) ((unsigned char)(c)) | ||
#define ChCharOf(c) ((chtype)(c) & (chtype)A_CHARTEXT) | ||
#define CharOf(c) ChCharOf(c) | ||
#define BLANK ' ' | ||
#define ZEROS '\0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters