| cursesw.h | | cursesw.h | |
| // * This makes emacs happy -*-Mode: C++;-*- | | // * This makes emacs happy -*-Mode: C++;-*- | |
|
| | | // vile:cppmode | |
| /**************************************************************************
** | | /**************************************************************************
** | |
|
| * Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.
* | | * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.
* | |
| *
* | | *
* | |
| * Permission is hereby granted, free of charge, to any person obtaining a
* | | * Permission is hereby granted, free of charge, to any person obtaining a
* | |
| * copy of this software and associated documentation files (the
* | | * copy of this software and associated documentation files (the
* | |
| * "Software"), to deal in the Software without restriction, including
* | | * "Software"), to deal in the Software without restriction, including
* | |
| * without limitation the rights to use, copy, modify, merge, publish,
* | | * without limitation the rights to use, copy, modify, merge, publish,
* | |
| * distribute, distribute with modifications, sublicense, and/or sell
* | | * distribute, distribute with modifications, sublicense, and/or sell
* | |
| * copies of the Software, and to permit persons to whom the Software is
* | | * copies of the Software, and to permit persons to whom the Software is
* | |
| * furnished to do so, subject to the following conditions:
* | | * furnished to do so, subject to the following conditions:
* | |
| *
* | | *
* | |
| * The above copyright notice and this permission notice shall be included
* | | * The above copyright notice and this permission notice shall be included
* | |
| | | | |
| skipping to change at line 33 | | skipping to change at line 34 | |
| *
* | | *
* | |
| * Except as contained in this notice, the name(s) of the above copyright
* | | * Except as contained in this notice, the name(s) of the above copyright
* | |
| * holders shall not be used in advertising or otherwise to promote the
* | | * holders shall not be used in advertising or otherwise to promote the
* | |
| * sale, use or other dealings in this Software without prior written
* | | * sale, use or other dealings in this Software without prior written
* | |
| * authorization.
* | | * authorization.
* | |
| **************************************************************************
**/ | | **************************************************************************
**/ | |
| | | | |
| #ifndef NCURSES_CURSESW_H_incl | | #ifndef NCURSES_CURSESW_H_incl | |
| #define NCURSES_CURSESW_H_incl 1 | | #define NCURSES_CURSESW_H_incl 1 | |
| | | | |
|
| // $Id: cursesw.h,v 1.38 2005/07/23 20:51:39 tom Exp $ | | // $Id: cursesw.h,v 1.48 2008/01/19 21:09:10 tom Exp $ | |
| | | | |
| #include <stdarg.h> | | | |
| #include <stdio.h> | | | |
| | | | |
| #include <ncurses/etip.h> | | #include <ncurses/etip.h> | |
| | | | |
|
| #if HAVE_STRSTREAM_H && (USE_STRSTREAM_VSCAN||USE_STRSTREAM_VSCAN_CAST) | | | |
| #include <strstream.h> | | | |
| #endif | | | |
| | | | |
| extern "C" { | | extern "C" { | |
| # include <ncurses/curses.h> | | # include <ncurses/curses.h> | |
| } | | } | |
| | | | |
| /* SCO 3.2v4 curses.h includes term.h, which defines lines as a macro. | | /* SCO 3.2v4 curses.h includes term.h, which defines lines as a macro. | |
| Undefine it here, because NCursesWindow uses lines as a method. */ | | Undefine it here, because NCursesWindow uses lines as a method. */ | |
| #undef lines | | #undef lines | |
| | | | |
| /* "Convert" macros to inlines. We'll define it as another symbol to avoid | | /* "Convert" macros to inlines. We'll define it as another symbol to avoid | |
| * conflict with library symbols. | | * conflict with library symbols. | |
| */ | | */ | |
| #undef UNDEF | | #undef UNDEF | |
| #define UNDEF(name) CUR_ ##name | | #define UNDEF(name) CUR_ ##name | |
| | | | |
| #ifdef addch | | #ifdef addch | |
| inline int UNDEF(addch)(chtype ch) { return addch(ch); } | | inline int UNDEF(addch)(chtype ch) { return addch(ch); } | |
| #undef addch | | #undef addch | |
| #define addch UNDEF(addch) | | #define addch UNDEF(addch) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef echochar | | #ifdef addchstr | |
| inline int UNDEF(echochar)(chtype ch) { return echochar(ch); } | | inline int UNDEF(addchstr)(chtype *at) { return addchstr(at); } | |
| #undef echochar | | #undef addchstr | |
| #define echochar UNDEF(echochar) | | #define addchstr UNDEF(addchstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef insdelln | | #ifdef addnstr | |
| inline int UNDEF(insdelln)(int n) { return insdelln(n); } | | inline int UNDEF(addnstr)(const char *str, int n) | |
| #undef insdelln | | { return addnstr(str, n); } | |
| #define insdelln UNDEF(insdelln) | | #undef addnstr | |
| | | #define addnstr UNDEF(addnstr) | |
| #endif | | #endif | |
| | | | |
| #ifdef addstr | | #ifdef addstr | |
| inline int UNDEF(addstr)(const char * str) { return addstr(str); } | | inline int UNDEF(addstr)(const char * str) { return addstr(str); } | |
| #undef addstr | | #undef addstr | |
| #define addstr UNDEF(addstr) | | #define addstr UNDEF(addstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef attron | | | |
| inline int UNDEF(attron)(chtype at) { return attron(at); } | | | |
| #undef attron | | | |
| #define attron UNDEF(attron) | | | |
| #endif | | | |
| | | | |
| #ifdef attroff | | #ifdef attroff | |
| inline int UNDEF(attroff)(chtype at) { return attroff(at); } | | inline int UNDEF(attroff)(chtype at) { return attroff(at); } | |
| #undef attroff | | #undef attroff | |
| #define attroff UNDEF(attroff) | | #define attroff UNDEF(attroff) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef attron | |
| | | inline int UNDEF(attron)(chtype at) { return attron(at); } | |
| | | #undef attron | |
| | | #define attron UNDEF(attron) | |
| | | #endif | |
| | | | |
| #ifdef attrset | | #ifdef attrset | |
| inline chtype UNDEF(attrset)(chtype at) { return attrset(at); } | | inline chtype UNDEF(attrset)(chtype at) { return attrset(at); } | |
| #undef attrset | | #undef attrset | |
| #define attrset UNDEF(attrset) | | #define attrset UNDEF(attrset) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef color_set | | #ifdef bkgd | |
| inline chtype UNDEF(color_set)(short p, void* opts) { return color_set(p, o | | inline int UNDEF(bkgd)(chtype ch) { return bkgd(ch); } | |
| pts); } | | #undef bkgd | |
| #undef color_set | | #define bkgd UNDEF(bkgd) | |
| #define color_set UNDEF(color_set) | | #endif | |
| | | | |
| | | #ifdef bkgdset | |
| | | inline void UNDEF(bkgdset)(chtype ch) { bkgdset(ch); } | |
| | | #undef bkgdset | |
| | | #define bkgdset UNDEF(bkgdset) | |
| #endif | | #endif | |
| | | | |
| #ifdef border | | #ifdef border | |
| inline int UNDEF(border)(chtype ls, chtype rs, chtype ts, chtype bs, chtype
tl, chtype tr, chtype bl, chtype br) | | inline int UNDEF(border)(chtype ls, chtype rs, chtype ts, chtype bs, chtype
tl, chtype tr, chtype bl, chtype br) | |
| { return border(ls, rs, ts, bs, tl, tr, bl, br); } | | { return border(ls, rs, ts, bs, tl, tr, bl, br); } | |
| #undef border | | #undef border | |
| #define border UNDEF(border) | | #define border UNDEF(border) | |
| #endif | | #endif | |
| | | | |
| #ifdef box | | #ifdef box | |
| inline int UNDEF(box)(WINDOW *win, int v, int h) { return box(win, v, h); } | | inline int UNDEF(box)(WINDOW *win, int v, int h) { return box(win, v, h); } | |
| #undef box | | #undef box | |
| #define box UNDEF(box) | | #define box UNDEF(box) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvwhline | | #ifdef chgat | |
| inline int UNDEF(mvwhline)(WINDOW *win, int y, int x, chtype c, int n) { | | inline int UNDEF(chgat)(int n, attr_t attr, short color, const void *opts) | |
| return mvwhline(win, y, x, c, n); } | | { | |
| #undef mvwhline | | return chgat(n, attr, color, opts); } | |
| #define mvwhline UNDEF(mvwhline) | | #undef chgat | |
| #endif | | #define chgat UNDEF(chgat) | |
| | | | |
| #ifdef mvwvline | | | |
| inline int UNDEF(mvwvline)(WINDOW *win, int y, int x, chtype c, int n) { | | | |
| return mvwvline(win, y, x, c, n); } | | | |
| #undef mvwvline | | | |
| #define mvwvline UNDEF(mvwvline) | | | |
| #endif | | #endif | |
| | | | |
| #ifdef clear | | #ifdef clear | |
| inline int UNDEF(clear)() { return clear(); } | | inline int UNDEF(clear)() { return clear(); } | |
| #undef clear | | #undef clear | |
| #define clear UNDEF(clear) | | #define clear UNDEF(clear) | |
| #endif | | #endif | |
| | | | |
| #ifdef clearok | | #ifdef clearok | |
| inline int UNDEF(clearok)(WINDOW* win, bool bf) { return clearok(win, bf);
} | | inline int UNDEF(clearok)(WINDOW* win, bool bf) { return clearok(win, bf);
} | |
| | | | |
| skipping to change at line 159 | | skipping to change at line 153 | |
| #undef clrtobot | | #undef clrtobot | |
| #define clrtobot UNDEF(clrtobot) | | #define clrtobot UNDEF(clrtobot) | |
| #endif | | #endif | |
| | | | |
| #ifdef clrtoeol | | #ifdef clrtoeol | |
| inline int UNDEF(clrtoeol)() { return clrtoeol(); } | | inline int UNDEF(clrtoeol)() { return clrtoeol(); } | |
| #undef clrtoeol | | #undef clrtoeol | |
| #define clrtoeol UNDEF(clrtoeol) | | #define clrtoeol UNDEF(clrtoeol) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef color_set | |
| | | inline chtype UNDEF(color_set)(short p, void* opts) { return color_set(p, o | |
| | | pts); } | |
| | | #undef color_set | |
| | | #define color_set UNDEF(color_set) | |
| | | #endif | |
| | | | |
| | | #ifdef crmode | |
| | | inline int UNDEF(crmode)(void) { return crmode(); } | |
| | | #undef crmode | |
| | | #define crmode UNDEF(crmode) | |
| | | #endif | |
| | | | |
| #ifdef delch | | #ifdef delch | |
| inline int UNDEF(delch)() { return delch(); } | | inline int UNDEF(delch)() { return delch(); } | |
| #undef delch | | #undef delch | |
| #define delch UNDEF(delch) | | #define delch UNDEF(delch) | |
| #endif | | #endif | |
| | | | |
| #ifdef deleteln | | #ifdef deleteln | |
| inline int UNDEF(deleteln)() { return deleteln(); } | | inline int UNDEF(deleteln)() { return deleteln(); } | |
| #undef deleteln | | #undef deleteln | |
| #define deleteln UNDEF(deleteln) | | #define deleteln UNDEF(deleteln) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef echochar | |
| | | inline int UNDEF(echochar)(chtype ch) { return echochar(ch); } | |
| | | #undef echochar | |
| | | #define echochar UNDEF(echochar) | |
| | | #endif | |
| | | | |
| #ifdef erase | | #ifdef erase | |
| inline int UNDEF(erase)() { return erase(); } | | inline int UNDEF(erase)() { return erase(); } | |
| #undef erase | | #undef erase | |
| #define erase UNDEF(erase) | | #define erase UNDEF(erase) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef fixterm | |
| | | inline int UNDEF(fixterm)(void) { return fixterm(); } | |
| | | #undef fixterm | |
| | | #define fixterm UNDEF(fixterm) | |
| | | #endif | |
| | | | |
| #ifdef flushok | | #ifdef flushok | |
| inline int UNDEF(flushok)(WINDOW* _win, bool _bf) { | | inline int UNDEF(flushok)(WINDOW* _win, bool _bf) { | |
| return flushok(_win, _bf); } | | return flushok(_win, _bf); } | |
| #undef flushok | | #undef flushok | |
| #define flushok UNDEF(flushok) | | #define flushok UNDEF(flushok) | |
| #else | | #else | |
| #define _no_flushok | | #define _no_flushok | |
| #endif | | #endif | |
| | | | |
|
| #ifdef getch | | #ifdef getattrs | |
| inline int UNDEF(getch)() { return getch(); } | | inline int UNDEF(getattrs)(WINDOW *win) { return getattrs(win); } | |
| #undef getch | | #undef getattrs | |
| #define getch UNDEF(getch) | | #define getattrs UNDEF(getattrs) | |
| #endif | | | |
| | | | |
| #ifdef getstr | | | |
| inline int UNDEF(getstr)(char *_str) { return getstr(_str); } | | | |
| #undef getstr | | | |
| #define getstr UNDEF(getstr) | | | |
| #endif | | | |
| | | | |
| #ifdef instr | | | |
| inline int UNDEF(instr)(char *_str) { return instr(_str); } | | | |
| #undef instr | | | |
| #define instr UNDEF(instr) | | | |
| #endif | | | |
| | | | |
| #ifdef innstr | | | |
| inline int UNDEF(innstr)(char *_str, int n) { return innstr(_str, n); } | | | |
| #undef innstr | | | |
| #define innstr UNDEF(innstr) | | | |
| #endif | | | |
| | | | |
| #ifdef mvwinnstr | | | |
| inline int UNDEF(mvwinnstr)(WINDOW *win, int y, int x, char *_str, int n) { | | | |
| return mvwinnstr(win, y, x, _str, n); } | | | |
| #undef mvwinnstr | | | |
| #define mvwinnstr UNDEF(mvwinnstr) | | | |
| #endif | | | |
| | | | |
| #ifdef mvinnstr | | | |
| inline int UNDEF(mvinnstr)(int y, int x, char *_str, int n) { | | | |
| return mvinnstr(y, x, _str, n); } | | | |
| #undef mvinnstr | | | |
| #define mvinnstr UNDEF(mvinnstr) | | | |
| #endif | | | |
| | | | |
| #ifdef winsstr | | | |
| inline int UNDEF(winsstr)(WINDOW *w, const char *_str) { | | | |
| return winsstr(w, _str); } | | | |
| #undef winsstr | | | |
| #define winsstr UNDEF(winsstr) | | | |
| #endif | | | |
| | | | |
| #ifdef mvwinsstr | | | |
| inline int UNDEF(mvwinsstr)(WINDOW *w, int y, int x, const char *_str) { | | | |
| return mvwinsstr(w, y, x, _str); } | | | |
| #undef mvwinsstr | | | |
| #define mvwinsstr UNDEF(mvwinsstr) | | | |
| #endif | | | |
| | | | |
| #ifdef insstr | | | |
| inline int UNDEF(insstr)(const char *_str) { | | | |
| return insstr(_str); } | | | |
| #undef insstr | | | |
| #define insstr UNDEF(insstr) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvinsstr | | #ifdef getbegyx | |
| inline int UNDEF(mvinsstr)(int y, int x, const char *_str) { | | inline void UNDEF(getbegyx)(WINDOW* win, int& y, int& x) { getbegyx(win, y, | |
| return mvinsstr(y, x, _str); } | | x); } | |
| #undef mvinsstr | | #undef getbegyx | |
| #define mvinsstr UNDEF(mvinsstr) | | #define getbegyx UNDEF(getbegyx) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef insnstr | | #ifdef getbkgd | |
| inline int UNDEF(insnstr)(const char *_str, int n) { | | inline chtype UNDEF(getbkgd)(const WINDOW *win) { return getbkgd(win); } | |
| return insnstr(_str, n); } | | #undef getbkgd | |
| #undef insnstr | | #define getbkgd UNDEF(getbkgd) | |
| #define insnstr UNDEF(insnstr) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvwinsnstr | | #ifdef getch | |
| inline int UNDEF(mvwinsnstr)(WINDOW *w, int y, int x, const char *_str, int | | inline int UNDEF(getch)() { return getch(); } | |
| n) { | | #undef getch | |
| return mvwinsnstr(w, y, x, _str, n); } | | #define getch UNDEF(getch) | |
| #undef mvwinsnstr | | | |
| #define mvwinsnstr UNDEF(mvwinsnstr) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvinsnstr | | #ifdef getmaxyx | |
| inline int UNDEF(mvinsnstr)(int y, int x, const char *_str, int n) { | | inline void UNDEF(getmaxyx)(WINDOW* win, int& y, int& x) { getmaxyx(win, y, | |
| return mvinsnstr(y, x, _str, n); } | | x); } | |
| #undef mvinsnstr | | #undef getmaxyx | |
| #define mvinsnstr UNDEF(mvinsnstr) | | #define getmaxyx UNDEF(getmaxyx) | |
| #endif | | #endif | |
| | | | |
| #ifdef getnstr | | #ifdef getnstr | |
| inline int UNDEF(getnstr)(char *_str, int n) { return getnstr(_str, n); } | | inline int UNDEF(getnstr)(char *_str, int n) { return getnstr(_str, n); } | |
| #undef getnstr | | #undef getnstr | |
| #define getnstr UNDEF(getnstr) | | #define getnstr UNDEF(getnstr) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef getparyx | |
| | | inline void UNDEF(getparyx)(WINDOW* win, int& y, int& x) { getparyx(win, y, | |
| | | x); } | |
| | | #undef getparyx | |
| | | #define getparyx UNDEF(getparyx) | |
| | | #endif | |
| | | | |
| | | #ifdef getstr | |
| | | inline int UNDEF(getstr)(char *_str) { return getstr(_str); } | |
| | | #undef getstr | |
| | | #define getstr UNDEF(getstr) | |
| | | #endif | |
| | | | |
| #ifdef getyx | | #ifdef getyx | |
| inline void UNDEF(getyx)(const WINDOW* win, int& y, int& x) { | | inline void UNDEF(getyx)(const WINDOW* win, int& y, int& x) { | |
| getyx(win, y, x); } | | getyx(win, y, x); } | |
| #undef getyx | | #undef getyx | |
| #define getyx UNDEF(getyx) | | #define getyx UNDEF(getyx) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef getbegyx | | | |
| inline void UNDEF(getbegyx)(WINDOW* win, int& y, int& x) { getbegyx(win, y, | | | |
| x); } | | | |
| #undef getbegyx | | | |
| #define getbegyx UNDEF(getbegyx) | | | |
| #endif | | | |
| | | | |
| #ifdef getmaxyx | | | |
| inline void UNDEF(getmaxyx)(WINDOW* win, int& y, int& x) { getmaxyx(win, y, | | | |
| x); } | | | |
| #undef getmaxyx | | | |
| #define getmaxyx UNDEF(getmaxyx) | | | |
| #endif | | | |
| | | | |
| #ifdef hline | | #ifdef hline | |
| inline int UNDEF(hline)(chtype ch, int n) { return hline(ch, n); } | | inline int UNDEF(hline)(chtype ch, int n) { return hline(ch, n); } | |
| #undef hline | | #undef hline | |
| #define hline UNDEF(hline) | | #define hline UNDEF(hline) | |
| #endif | | #endif | |
| | | | |
| #ifdef inch | | #ifdef inch | |
| inline chtype UNDEF(inch)() { return inch(); } | | inline chtype UNDEF(inch)() { return inch(); } | |
| #undef inch | | #undef inch | |
| #define inch UNDEF(inch) | | #define inch UNDEF(inch) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef inchstr | |
| | | inline int UNDEF(inchstr)(chtype *str) { return inchstr(str); } | |
| | | #undef inchstr | |
| | | #define inchstr UNDEF(inchstr) | |
| | | #endif | |
| | | | |
| | | #ifdef innstr | |
| | | inline int UNDEF(innstr)(char *_str, int n) { return innstr(_str, n); } | |
| | | #undef innstr | |
| | | #define innstr UNDEF(innstr) | |
| | | #endif | |
| | | | |
| #ifdef insch | | #ifdef insch | |
| inline int UNDEF(insch)(chtype c) { return insch(c); } | | inline int UNDEF(insch)(chtype c) { return insch(c); } | |
| #undef insch | | #undef insch | |
| #define insch UNDEF(insch) | | #define insch UNDEF(insch) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef insdelln | |
| | | inline int UNDEF(insdelln)(int n) { return insdelln(n); } | |
| | | #undef insdelln | |
| | | #define insdelln UNDEF(insdelln) | |
| | | #endif | |
| | | | |
| #ifdef insertln | | #ifdef insertln | |
| inline int UNDEF(insertln)() { return insertln(); } | | inline int UNDEF(insertln)() { return insertln(); } | |
| #undef insertln | | #undef insertln | |
| #define insertln UNDEF(insertln) | | #define insertln UNDEF(insertln) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef insnstr | |
| | | inline int UNDEF(insnstr)(const char *_str, int n) { | |
| | | return insnstr(_str, n); } | |
| | | #undef insnstr | |
| | | #define insnstr UNDEF(insnstr) | |
| | | #endif | |
| | | | |
| | | #ifdef insstr | |
| | | inline int UNDEF(insstr)(const char *_str) { | |
| | | return insstr(_str); } | |
| | | #undef insstr | |
| | | #define insstr UNDEF(insstr) | |
| | | #endif | |
| | | | |
| | | #ifdef instr | |
| | | inline int UNDEF(instr)(char *_str) { return instr(_str); } | |
| | | #undef instr | |
| | | #define instr UNDEF(instr) | |
| | | #endif | |
| | | | |
| | | #ifdef intrflush | |
| | | inline void UNDEF(intrflush)(WINDOW *win, bool bf) { intrflush(); } | |
| | | #undef intrflush | |
| | | #define intrflush UNDEF(intrflush) | |
| | | #endif | |
| | | | |
| #ifdef leaveok | | #ifdef leaveok | |
| inline int UNDEF(leaveok)(WINDOW* win, bool bf) { return leaveok(win, bf);
} | | inline int UNDEF(leaveok)(WINDOW* win, bool bf) { return leaveok(win, bf);
} | |
| #undef leaveok | | #undef leaveok | |
| #define leaveok UNDEF(leaveok) | | #define leaveok UNDEF(leaveok) | |
| #else | | #else | |
| extern "C" NCURSES_IMPEXP int NCURSES_API leaveok(WINDOW* win, bool bf); | | extern "C" NCURSES_IMPEXP int NCURSES_API leaveok(WINDOW* win, bool bf); | |
| #endif | | #endif | |
| | | | |
| #ifdef move | | #ifdef move | |
| inline int UNDEF(move)(int x, int y) { return move(x, y); } | | inline int UNDEF(move)(int x, int y) { return move(x, y); } | |
| #undef move | | #undef move | |
| #define move UNDEF(move) | | #define move UNDEF(move) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef refresh | | #ifdef mvaddch | |
| inline int UNDEF(refresh)() { return refresh(); } | | inline int UNDEF(mvaddch)(int y, int x, chtype ch) | |
| #undef refresh | | { return mvaddch(y, x, ch); } | |
| #define refresh UNDEF(refresh) | | #undef mvaddch | |
| #endif | | #define mvaddch UNDEF(mvaddch) | |
| | | | |
| #ifdef redrawwin | | | |
| inline int UNDEF(redrawwin)(WINDOW *win) { return redrawwin(win); } | | | |
| #undef redrawwin | | | |
| #define redrawwin UNDEF(redrawwin) | | | |
| #endif | | | |
| | | | |
| #ifdef scrl | | | |
| inline int UNDEF(scrl)(int l) { return scrl(l); } | | | |
| #undef scrl | | | |
| #define scrl UNDEF(scrl) | | | |
| #endif | | | |
| | | | |
| #ifdef scroll | | | |
| inline int UNDEF(scroll)(WINDOW *win) { return scroll(win); } | | | |
| #undef scroll | | | |
| #define scroll UNDEF(scroll) | | | |
| #endif | | | |
| | | | |
| #ifdef scrollok | | | |
| inline int UNDEF(scrollok)(WINDOW* win, bool bf) { return scrollok(win, bf | | | |
| ); } | | | |
| #undef scrollok | | | |
| #define scrollok UNDEF(scrollok) | | | |
| #else | | | |
| #if defined(__NCURSES_H) | | | |
| extern "C" NCURSES_IMPEXP int NCURSES_API scrollok(WINDOW*, bool); | | | |
| #else | | | |
| extern "C" NCURSES_IMPEXP int NCURSES_API scrollok(WINDOW*, char); | | | |
| #endif | | | |
| #endif | | | |
| | | | |
| #ifdef setscrreg | | | |
| inline int UNDEF(setscrreg)(int t, int b) { return setscrreg(t, b); } | | | |
| #undef setscrreg | | | |
| #define setscrreg UNDEF(setscrreg) | | | |
| #endif | | | |
| | | | |
| #ifdef standend | | | |
| inline int UNDEF(standend)() { return standend(); } | | | |
| #undef standend | | | |
| #define standend UNDEF(standend) | | | |
| #endif | | | |
| | | | |
| #ifdef standout | | | |
| inline int UNDEF(standout)() { return standout(); } | | | |
| #undef standout | | | |
| #define standout UNDEF(standout) | | | |
| #endif | | | |
| | | | |
| #ifdef subpad | | | |
| inline WINDOW *UNDEF(subpad)(WINDOW *p, int l, int c, int y, int x) | | | |
| { return derwin(p, l, c, y, x); } | | | |
| #undef subpad | | | |
| #define subpad UNDEF(subpad) | | | |
| #endif | | | |
| | | | |
| #ifdef timeout | | | |
| inline void UNDEF(timeout)(int delay) { timeout(delay); } | | | |
| #undef timeout | | | |
| #define timeout UNDEF(timeout) | | | |
| #endif | | | |
| | | | |
| #ifdef touchline | | | |
| inline int UNDEF(touchline)(WINDOW *win, int s, int c) | | | |
| { return touchline(win, s, c); } | | | |
| #undef touchline | | | |
| #define touchline UNDEF(touchline) | | | |
| #endif | | | |
| | | | |
| #ifdef touchwin | | | |
| inline int UNDEF(touchwin)(WINDOW *win) { return touchwin(win); } | | | |
| #undef touchwin | | | |
| #define touchwin UNDEF(touchwin) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef untouchwin | | #ifdef mvaddnstr | |
| inline int UNDEF(untouchwin)(WINDOW *win) { return untouchwin(win); } | | inline int UNDEF(mvaddnstr)(int y, int x, const char *str, int n) | |
| #undef untouchwin | | { return mvaddnstr(y, x, str, n); } | |
| #define untouchwin UNDEF(untouchwin) | | #undef mvaddnstr | |
| | | #define mvaddnstr UNDEF(mvaddnstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef vline | | #ifdef mvaddstr | |
| inline int UNDEF(vline)(chtype ch, int n) { return vline(ch, n); } | | inline int UNDEF(mvaddstr)(int y, int x, const char * str) | |
| #undef vline | | { return mvaddstr(y, x, str); } | |
| #define vline UNDEF(vline) | | #undef mvaddstr | |
| | | #define mvaddstr UNDEF(mvaddstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef waddstr | | #ifdef mvchgat | |
| inline int UNDEF(waddstr)(WINDOW *win, char *str) { return waddstr(win, str | | inline int UNDEF(mvchgat)(int y, int x, int n, | |
| ); } | | attr_t attr, short color, const void *opts) { | |
| #undef waddstr | | return mvchgat(y, x, n, attr, color, opts); } | |
| #define waddstr UNDEF(waddstr) | | #undef mvchgat | |
| | | #define mvchgat UNDEF(mvchgat) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef waddchstr | | #ifdef mvdelch | |
| inline int UNDEF(waddchstr)(WINDOW *win, chtype *at) { return waddchstr(win | | inline int UNDEF(mvdelch)(int y, int x) { return mvdelch(y, x);} | |
| , at); } | | #undef mvdelch | |
| #undef waddchstr | | #define mvdelch UNDEF(mvdelch) | |
| #define waddchstr UNDEF(waddchstr) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef wstandend | | #ifdef mvgetch | |
| inline int UNDEF(wstandend)(WINDOW *win) { return wstandend(win); } | | inline int UNDEF(mvgetch)(int y, int x) { return mvgetch(y, x);} | |
| #undef wstandend | | #undef mvgetch | |
| #define wstandend UNDEF(wstandend) | | #define mvgetch UNDEF(mvgetch) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef wstandout | | #ifdef mvgetnstr | |
| inline int UNDEF(wstandout)(WINDOW *win) { return wstandout(win); } | | inline int UNDEF(mvgetnstr)(int y, int x, char *str, int n) { | |
| #undef wstandout | | return mvgetnstr(y, x, str, n);} | |
| #define wstandout UNDEF(wstandout) | | #undef mvgetnstr | |
| | | #define mvgetnstr UNDEF(mvgetnstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef wattroff | | #ifdef mvgetstr | |
| inline int UNDEF(wattroff)(WINDOW *win, int att) { return wattroff(win, att | | inline int UNDEF(mvgetstr)(int y, int x, char *str) {return mvgetstr(y, x, | |
| ); } | | str);} | |
| #undef wattroff | | #undef mvgetstr | |
| #define wattroff UNDEF(wattroff) | | #define mvgetstr UNDEF(mvgetstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef chgat | | #ifdef mvinch | |
| inline int UNDEF(chgat)(int n, attr_t attr, short color, const void *opts) | | inline chtype UNDEF(mvinch)(int y, int x) { return mvinch(y, x);} | |
| { | | #undef mvinch | |
| return chgat(n, attr, color, opts); } | | #define mvinch UNDEF(mvinch) | |
| #undef chgat | | | |
| #define chgat UNDEF(chgat) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvchgat | | #ifdef mvinnstr | |
| inline int UNDEF(mvchgat)(int y, int x, int n, | | inline int UNDEF(mvinnstr)(int y, int x, char *_str, int n) { | |
| attr_t attr, short color, const void *opts) { | | return mvinnstr(y, x, _str, n); } | |
| return mvchgat(y, x, n, attr, color, opts); } | | #undef mvinnstr | |
| #undef mvchgat | | #define mvinnstr UNDEF(mvinnstr) | |
| #define mvchgat UNDEF(mvchgat) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvwchgat | | #ifdef mvinsch | |
| inline int UNDEF(mvwchgat)(WINDOW *win, int y, int x, int n, | | inline int UNDEF(mvinsch)(int y, int x, chtype c) | |
| attr_t attr, short color, const void *opts) { | | { return mvinsch(y, x, c); } | |
| return mvwchgat(win, y, x, n, attr, color, opts); } | | #undef mvinsch | |
| #undef mvwchgat | | #define mvinsch UNDEF(mvinsch) | |
| #define mvwchgat UNDEF(mvwchgat) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef wattrset | | #ifdef mvinsnstr | |
| inline int UNDEF(wattrset)(WINDOW *win, int att) { return wattrset(win, att | | inline int UNDEF(mvinsnstr)(int y, int x, const char *_str, int n) { | |
| ); } | | return mvinsnstr(y, x, _str, n); } | |
| #undef wattrset | | #undef mvinsnstr | |
| #define wattrset UNDEF(wattrset) | | #define mvinsnstr UNDEF(mvinsnstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef winch | | #ifdef mvinsstr | |
| inline chtype UNDEF(winch)(const WINDOW* win) { return winch(win); } | | inline int UNDEF(mvinsstr)(int y, int x, const char *_str) { | |
| #undef winch | | return mvinsstr(y, x, _str); } | |
| #define winch UNDEF(winch) | | #undef mvinsstr | |
| | | #define mvinsstr UNDEF(mvinsstr) | |
| #endif | | #endif | |
| | | | |
| #ifdef mvwaddch | | #ifdef mvwaddch | |
| inline int UNDEF(mvwaddch)(WINDOW *win, int y, int x, const chtype ch) | | inline int UNDEF(mvwaddch)(WINDOW *win, int y, int x, const chtype ch) | |
| { return mvwaddch(win, y, x, ch); } | | { return mvwaddch(win, y, x, ch); } | |
| #undef mvwaddch | | #undef mvwaddch | |
| #define mvwaddch UNDEF(mvwaddch) | | #define mvwaddch UNDEF(mvwaddch) | |
| #endif | | #endif | |
| | | | |
| #ifdef mvwaddchnstr | | #ifdef mvwaddchnstr | |
|
| inline int UNDEF(mvwaddchnstr)(WINDOW *win, int y, int x, chtype *str, int
n) | | inline int UNDEF(mvwaddchnstr)(WINDOW *win, int y, int x, const chtype *str
, int n) | |
| { return mvwaddchnstr(win, y, x, str, n); } | | { return mvwaddchnstr(win, y, x, str, n); } | |
| #undef mvwaddchnstr | | #undef mvwaddchnstr | |
| #define mvwaddchnstr UNDEF(mvwaddchnstr) | | #define mvwaddchnstr UNDEF(mvwaddchnstr) | |
| #endif | | #endif | |
| | | | |
| #ifdef mvwaddchstr | | #ifdef mvwaddchstr | |
|
| inline int UNDEF(mvwaddchstr)(WINDOW *win, int y, int x, chtype *str) | | inline int UNDEF(mvwaddchstr)(WINDOW *win, int y, int x, const chtype *str) | |
| { return mvwaddchstr(win, y, x, str); } | | { return mvwaddchstr(win, y, x, str); } | |
| #undef mvwaddchstr | | #undef mvwaddchstr | |
| #define mvwaddchstr UNDEF(mvwaddchstr) | | #define mvwaddchstr UNDEF(mvwaddchstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef addnstr | | | |
| inline int UNDEF(addnstr)(const char *str, int n) | | | |
| { return addnstr(str, n); } | | | |
| #undef addnstr | | | |
| #define addnstr UNDEF(addnstr) | | | |
| #endif | | | |
| | | | |
| #ifdef mvwaddnstr | | #ifdef mvwaddnstr | |
| inline int UNDEF(mvwaddnstr)(WINDOW *win, int y, int x, const char *str, in
t n) | | inline int UNDEF(mvwaddnstr)(WINDOW *win, int y, int x, const char *str, in
t n) | |
| { return mvwaddnstr(win, y, x, str, n); } | | { return mvwaddnstr(win, y, x, str, n); } | |
| #undef mvwaddnstr | | #undef mvwaddnstr | |
| #define mvwaddnstr UNDEF(mvwaddnstr) | | #define mvwaddnstr UNDEF(mvwaddnstr) | |
| #endif | | #endif | |
| | | | |
| #ifdef mvwaddstr | | #ifdef mvwaddstr | |
| inline int UNDEF(mvwaddstr)(WINDOW *win, int y, int x, const char * str) | | inline int UNDEF(mvwaddstr)(WINDOW *win, int y, int x, const char * str) | |
| { return mvwaddstr(win, y, x, str); } | | { return mvwaddstr(win, y, x, str); } | |
| #undef mvwaddstr | | #undef mvwaddstr | |
| #define mvwaddstr UNDEF(mvwaddstr) | | #define mvwaddstr UNDEF(mvwaddstr) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef mvwchgat | |
| | | inline int UNDEF(mvwchgat)(WINDOW *win, int y, int x, int n, | |
| | | attr_t attr, short color, const void *opts) { | |
| | | return mvwchgat(win, y, x, n, attr, color, opts); } | |
| | | #undef mvwchgat | |
| | | #define mvwchgat UNDEF(mvwchgat) | |
| | | #endif | |
| | | | |
| #ifdef mvwdelch | | #ifdef mvwdelch | |
| inline int UNDEF(mvwdelch)(WINDOW *win, int y, int x) | | inline int UNDEF(mvwdelch)(WINDOW *win, int y, int x) | |
| { return mvwdelch(win, y, x); } | | { return mvwdelch(win, y, x); } | |
| #undef mvwdelch | | #undef mvwdelch | |
| #define mvwdelch UNDEF(mvwdelch) | | #define mvwdelch UNDEF(mvwdelch) | |
| #endif | | #endif | |
| | | | |
| #ifdef mvwgetch | | #ifdef mvwgetch | |
| inline int UNDEF(mvwgetch)(WINDOW *win, int y, int x) { return mvwgetch(win
, y, x);} | | inline int UNDEF(mvwgetch)(WINDOW *win, int y, int x) { return mvwgetch(win
, y, x);} | |
| #undef mvwgetch | | #undef mvwgetch | |
| #define mvwgetch UNDEF(mvwgetch) | | #define mvwgetch UNDEF(mvwgetch) | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef mvwgetnstr | |
| | | inline int UNDEF(mvwgetnstr)(WINDOW *win, int y, int x, char *str, int n) | |
| | | {return mvwgetnstr(win, y, x, str, n);} | |
| | | #undef mvwgetnstr | |
| | | #define mvwgetnstr UNDEF(mvwgetnstr) | |
| | | #endif | |
| | | | |
| #ifdef mvwgetstr | | #ifdef mvwgetstr | |
| inline int UNDEF(mvwgetstr)(WINDOW *win, int y, int x, char *str) | | inline int UNDEF(mvwgetstr)(WINDOW *win, int y, int x, char *str) | |
| {return mvwgetstr(win, y, x, str);} | | {return mvwgetstr(win, y, x, str);} | |
| #undef mvwgetstr | | #undef mvwgetstr | |
| #define mvwgetstr UNDEF(mvwgetstr) | | #define mvwgetstr UNDEF(mvwgetstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvwgetnstr | | #ifdef mvwhline | |
| inline int UNDEF(mvwgetnstr)(WINDOW *win, int y, int x, char *str, int n) | | inline int UNDEF(mvwhline)(WINDOW *win, int y, int x, chtype c, int n) { | |
| {return mvwgetnstr(win, y, x, str, n);} | | return mvwhline(win, y, x, c, n); } | |
| #undef mvwgetnstr | | #undef mvwhline | |
| #define mvwgetnstr UNDEF(mvwgetnstr) | | #define mvwhline UNDEF(mvwhline) | |
| #endif | | #endif | |
| | | | |
| #ifdef mvwinch | | #ifdef mvwinch | |
| inline chtype UNDEF(mvwinch)(WINDOW *win, int y, int x) { | | inline chtype UNDEF(mvwinch)(WINDOW *win, int y, int x) { | |
| return mvwinch(win, y, x);} | | return mvwinch(win, y, x);} | |
| #undef mvwinch | | #undef mvwinch | |
| #define mvwinch UNDEF(mvwinch) | | #define mvwinch UNDEF(mvwinch) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvwinsch | | #ifdef mvwinchnstr | |
| inline int UNDEF(mvwinsch)(WINDOW *win, int y, int x, chtype c) | | inline int UNDEF(mvwinchnstr)(WINDOW *win, int y, int x, chtype *str, int n | |
| { return mvwinsch(win, y, x, c); } | | ) { return mvwinchnstr(win, y, x, str, n); } | |
| #undef mvwinsch | | #undef mvwinchnstr | |
| #define mvwinsch UNDEF(mvwinsch) | | #define mvwinchnstr UNDEF(mvwinchnstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvaddch | | #ifdef mvwinchstr | |
| inline int UNDEF(mvaddch)(int y, int x, chtype ch) | | inline int UNDEF(mvwinchstr)(WINDOW *win, int y, int x, chtype *str) { ret | |
| { return mvaddch(y, x, ch); } | | urn mvwinchstr(win, y, x, str); } | |
| #undef mvaddch | | #undef mvwinchstr | |
| #define mvaddch UNDEF(mvaddch) | | #define mvwinchstr UNDEF(mvwinchstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvaddnstr | | #ifdef mvwinnstr | |
| inline int UNDEF(mvaddnstr)(int y, int x, const char *str, int n) | | inline int UNDEF(mvwinnstr)(WINDOW *win, int y, int x, char *_str, int n) { | |
| { return mvaddnstr(y, x, str, n); } | | return mvwinnstr(win, y, x, _str, n); } | |
| #undef mvaddnstr | | #undef mvwinnstr | |
| #define mvaddnstr UNDEF(mvaddnstr) | | #define mvwinnstr UNDEF(mvwinnstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvaddstr | | #ifdef mvwinsch | |
| inline int UNDEF(mvaddstr)(int y, int x, const char * str) | | inline int UNDEF(mvwinsch)(WINDOW *win, int y, int x, chtype c) | |
| { return mvaddstr(y, x, str); } | | { return mvwinsch(win, y, x, c); } | |
| #undef mvaddstr | | #undef mvwinsch | |
| #define mvaddstr UNDEF(mvaddstr) | | #define mvwinsch UNDEF(mvwinsch) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvdelch | | #ifdef mvwinsnstr | |
| inline int UNDEF(mvdelch)(int y, int x) { return mvdelch(y, x);} | | inline int UNDEF(mvwinsnstr)(WINDOW *w, int y, int x, const char *_str, int | |
| #undef mvdelch | | n) { | |
| #define mvdelch UNDEF(mvdelch) | | return mvwinsnstr(w, y, x, _str, n); } | |
| | | #undef mvwinsnstr | |
| | | #define mvwinsnstr UNDEF(mvwinsnstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvgetch | | #ifdef mvwinsstr | |
| inline int UNDEF(mvgetch)(int y, int x) { return mvgetch(y, x);} | | inline int UNDEF(mvwinsstr)(WINDOW *w, int y, int x, const char *_str) { | |
| #undef mvgetch | | return mvwinsstr(w, y, x, _str); } | |
| #define mvgetch UNDEF(mvgetch) | | #undef mvwinsstr | |
| | | #define mvwinsstr UNDEF(mvwinsstr) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvgetstr | | #ifdef mvwvline | |
| inline int UNDEF(mvgetstr)(int y, int x, char *str) {return mvgetstr(y, x, | | inline int UNDEF(mvwvline)(WINDOW *win, int y, int x, chtype c, int n) { | |
| str);} | | return mvwvline(win, y, x, c, n); } | |
| #undef mvgetstr | | #undef mvwvline | |
| #define mvgetstr UNDEF(mvgetstr) | | #define mvwvline UNDEF(mvwvline) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvgetnstr | | #ifdef napms | |
| inline int UNDEF(mvgetnstr)(int y, int x, char *str, int n) { | | inline void UNDEF(napms)(unsigned long x) { napms(x); } | |
| return mvgetnstr(y, x, str, n);} | | #undef napms | |
| #undef mvgetnstr | | #define napms UNDEF(napms) | |
| #define mvgetnstr UNDEF(mvgetnstr) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvinch | | #ifdef nocrmode | |
| inline chtype UNDEF(mvinch)(int y, int x) { return mvinch(y, x);} | | inline int UNDEF(nocrmode)(void) { return nocrmode(); } | |
| #undef mvinch | | #undef nocrmode | |
| #define mvinch UNDEF(mvinch) | | #define nocrmode UNDEF(nocrmode) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef mvinsch | | #ifdef nodelay | |
| inline int UNDEF(mvinsch)(int y, int x, chtype c) | | inline void UNDEF(nodelay)() { nodelay(); } | |
| { return mvinsch(y, x, c); } | | #undef nodelay | |
| #undef mvinsch | | #define nodelay UNDEF(nodelay) | |
| #define mvinsch UNDEF(mvinsch) | | | |
| #endif | | #endif | |
| | | | |
|
| #ifdef napms | | #ifdef redrawwin | |
| inline void UNDEF(napms)(unsigned long x) { napms(x); } | | inline int UNDEF(redrawwin)(WINDOW *win) { return redrawwin(win); } | |
| #undef napms | | #undef redrawwin | |
| #define napms UNDEF(napms) | | #define redrawwin UNDEF(redrawwin) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef fixterm | | #ifdef refresh | |
| inline int UNDEF(fixterm)(void) { return fixterm(); } | | inline int UNDEF(refresh)() { return refresh(); } | |
| #undef fixterm | | #undef refresh | |
| #define fixterm UNDEF(fixterm) | | #define refresh UNDEF(refresh) | |
| #endif | | #endif | |
| | | | |
| #ifdef resetterm | | #ifdef resetterm | |
| inline int UNDEF(resetterm)(void) { return resetterm(); } | | inline int UNDEF(resetterm)(void) { return resetterm(); } | |
| #undef resetterm | | #undef resetterm | |
| #define resetterm UNDEF(resetterm) | | #define resetterm UNDEF(resetterm) | |
| #endif | | #endif | |
| | | | |
| #ifdef saveterm | | #ifdef saveterm | |
| inline int UNDEF(saveterm)(void) { return saveterm(); } | | inline int UNDEF(saveterm)(void) { return saveterm(); } | |
| #undef saveterm | | #undef saveterm | |
| #define saveterm UNDEF(saveterm) | | #define saveterm UNDEF(saveterm) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef crmode | | #ifdef scrl | |
| inline int UNDEF(crmode)(void) { return crmode(); } | | inline int UNDEF(scrl)(int l) { return scrl(l); } | |
| #undef crmode | | #undef scrl | |
| #define crmode UNDEF(crmode) | | #define scrl UNDEF(scrl) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef nocrmode | | #ifdef scroll | |
| inline int UNDEF(nocrmode)(void) { return nocrmode(); } | | inline int UNDEF(scroll)(WINDOW *win) { return scroll(win); } | |
| #undef nocrmode | | #undef scroll | |
| #define nocrmode UNDEF(nocrmode) | | #define scroll UNDEF(scroll) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef getbkgd | | #ifdef scrollok | |
| inline chtype UNDEF(getbkgd)(const WINDOW *win) { return getbkgd(win); } | | inline int UNDEF(scrollok)(WINDOW* win, bool bf) { return scrollok(win, bf | |
| #undef getbkgd | | ); } | |
| #define getbkgd UNDEF(getbkgd) | | #undef scrollok | |
| | | #define scrollok UNDEF(scrollok) | |
| | | #else | |
| | | #if defined(__NCURSES_H) | |
| | | extern "C" NCURSES_IMPEXP int NCURSES_API scrollok(WINDOW*, bool); | |
| | | #else | |
| | | extern "C" NCURSES_IMPEXP int NCURSES_API scrollok(WINDOW*, char); | |
| | | #endif | |
| #endif | | #endif | |
| | | | |
|
| #ifdef bkgd | | #ifdef setscrreg | |
| inline int UNDEF(bkgd)(chtype ch) { return bkgd(ch); } | | inline int UNDEF(setscrreg)(int t, int b) { return setscrreg(t, b); } | |
| #undef bkgd | | #undef setscrreg | |
| #define bkgd UNDEF(bkgd) | | #define setscrreg UNDEF(setscrreg) | |
| #endif | | #endif | |
| | | | |
|
| #ifdef bkgdset | | #ifdef standend | |
| inline void UNDEF(bkgdset)(chtype ch) { bkgdset(ch); } | | inline int UNDEF(standend)() { return standend(); } | |
| #undef bkgdset | | #undef standend | |
| #define bkgdset UNDEF(bkgdset) | | #define standend UNDEF(standend) | |
| | | #endif | |
| | | | |
| | | #ifdef standout | |
| | | inline int UNDEF(standout)() { return standout(); } | |
| | | #undef standout | |
| | | #define standout UNDEF(standout) | |
| | | #endif | |
| | | | |
| | | #ifdef subpad | |
| | | inline WINDOW *UNDEF(subpad)(WINDOW *p, int l, int c, int y, int x) | |
| | | { return derwin(p, l, c, y, x); } | |
| | | #undef subpad | |
| | | #define subpad UNDEF(subpad) | |
| | | #endif | |
| | | | |
| | | #ifdef timeout | |
| | | inline void UNDEF(timeout)(int delay) { timeout(delay); } | |
| | | #undef timeout | |
| | | #define timeout UNDEF(timeout) | |
| | | #endif | |
| | | | |
| | | #ifdef touchline | |
| | | inline int UNDEF(touchline)(WINDOW *win, int s, int c) | |
| | | { return touchline(win, s, c); } | |
| | | #undef touchline | |
| | | #define touchline UNDEF(touchline) | |
| | | #endif | |
| | | | |
| | | #ifdef touchwin | |
| | | inline int UNDEF(touchwin)(WINDOW *win) { return touchwin(win); } | |
| | | #undef touchwin | |
| | | #define touchwin UNDEF(touchwin) | |
| | | #endif | |
| | | | |
| | | #ifdef untouchwin | |
| | | inline int UNDEF(untouchwin)(WINDOW *win) { return untouchwin(win); } | |
| | | #undef untouchwin | |
| | | #define untouchwin UNDEF(untouchwin) | |
| | | #endif | |
| | | | |
| | | #ifdef vline | |
| | | inline int UNDEF(vline)(chtype ch, int n) { return vline(ch, n); } | |
| | | #undef vline | |
| | | #define vline UNDEF(vline) | |
| | | #endif | |
| | | | |
| | | #ifdef waddchstr | |
| | | inline int UNDEF(waddchstr)(WINDOW *win, chtype *at) { return waddchstr(win | |
| | | , at); } | |
| | | #undef waddchstr | |
| | | #define waddchstr UNDEF(waddchstr) | |
| | | #endif | |
| | | | |
| | | #ifdef waddstr | |
| | | inline int UNDEF(waddstr)(WINDOW *win, char *str) { return waddstr(win, str | |
| | | ); } | |
| | | #undef waddstr | |
| | | #define waddstr UNDEF(waddstr) | |
| | | #endif | |
| | | | |
| | | #ifdef wattroff | |
| | | inline int UNDEF(wattroff)(WINDOW *win, int att) { return wattroff(win, att | |
| | | ); } | |
| | | #undef wattroff | |
| | | #define wattroff UNDEF(wattroff) | |
| | | #endif | |
| | | | |
| | | #ifdef wattrset | |
| | | inline int UNDEF(wattrset)(WINDOW *win, int att) { return wattrset(win, att | |
| | | ); } | |
| | | #undef wattrset | |
| | | #define wattrset UNDEF(wattrset) | |
| | | #endif | |
| | | | |
| | | #ifdef winch | |
| | | inline chtype UNDEF(winch)(const WINDOW* win) { return winch(win); } | |
| | | #undef winch | |
| | | #define winch UNDEF(winch) | |
| | | #endif | |
| | | | |
| | | #ifdef winchnstr | |
| | | inline int UNDEF(winchnstr)(WINDOW *win, chtype *str, int n) { return winc | |
| | | hnstr(win, str, n); } | |
| | | #undef winchnstr | |
| | | #define winchnstr UNDEF(winchnstr) | |
| | | #endif | |
| | | | |
| | | #ifdef winchstr | |
| | | inline int UNDEF(winchstr)(WINDOW *win, chtype *str) { return winchstr(win | |
| | | , str); } | |
| | | #undef winchstr | |
| | | #define winchstr UNDEF(winchstr) | |
| | | #endif | |
| | | | |
| | | #ifdef winsstr | |
| | | inline int UNDEF(winsstr)(WINDOW *w, const char *_str) { | |
| | | return winsstr(w, _str); } | |
| | | #undef winsstr | |
| | | #define winsstr UNDEF(winsstr) | |
| | | #endif | |
| | | | |
| | | #ifdef wstandend | |
| | | inline int UNDEF(wstandend)(WINDOW *win) { return wstandend(win); } | |
| | | #undef wstandend | |
| | | #define wstandend UNDEF(wstandend) | |
| | | #endif | |
| | | | |
| | | #ifdef wstandout | |
| | | inline int UNDEF(wstandout)(WINDOW *win) { return wstandout(win); } | |
| | | #undef wstandout | |
| | | #define wstandout UNDEF(wstandout) | |
| #endif | | #endif | |
| | | | |
| /* | | /* | |
| * | | * | |
| * C++ class for windows. | | * C++ class for windows. | |
| * | | * | |
| */ | | */ | |
| | | | |
| extern "C" int _nc_ripoffline(int, int (*init)(WINDOW*, int)); | | extern "C" int _nc_ripoffline(int, int (*init)(WINDOW*, int)); | |
| extern "C" int _nc_xx_ripoff_init(WINDOW *, int); | | extern "C" int _nc_xx_ripoff_init(WINDOW *, int); | |
| extern "C" int _nc_has_mouse(void); | | extern "C" int _nc_has_mouse(void); | |
| | | | |
| class NCURSES_IMPEXP NCursesWindow | | class NCURSES_IMPEXP NCursesWindow | |
| { | | { | |
| friend class NCursesMenu; | | friend class NCursesMenu; | |
| friend class NCursesForm; | | friend class NCursesForm; | |
| | | | |
| private: | | private: | |
| static bool b_initialized; | | static bool b_initialized; | |
| static void initialize(); | | static void initialize(); | |
|
| | | void constructing(); | |
| friend int _nc_xx_ripoff_init(WINDOW *, int); | | friend int _nc_xx_ripoff_init(WINDOW *, int); | |
| | | | |
|
| void init(); | | void set_keyboard(); | |
| | | | |
| short getcolor(int getback) const; | | short getcolor(int getback) const; | |
|
| | | short getPair() const; | |
| | | | |
| static int setpalette(short fore, short back, short pair); | | static int setpalette(short fore, short back, short pair); | |
| static int colorInitialized; | | static int colorInitialized; | |
| | | | |
| // This private constructor is only used during the initialization | | // This private constructor is only used during the initialization | |
| // of windows generated by ripoffline() calls. | | // of windows generated by ripoffline() calls. | |
| NCursesWindow(WINDOW* win, int ncols); | | NCursesWindow(WINDOW* win, int ncols); | |
| | | | |
| protected: | | protected: | |
| virtual void err_handler(const char *) const THROWS(NCursesException); | | virtual void err_handler(const char *) const THROWS(NCursesException); | |
| | | | |
| skipping to change at line 745 | | skipping to change at line 801 | |
| NCursesWindow* sib; // next subwindow of parent | | NCursesWindow* sib; // next subwindow of parent | |
| | | | |
| void kill_subwindows(); // disable all subwindows | | void kill_subwindows(); // disable all subwindows | |
| // Destroy all subwindows. | | // Destroy all subwindows. | |
| | | | |
| /* Only for use by derived classes. They are then in charge to | | /* Only for use by derived classes. They are then in charge to | |
| fill the member variables correctly. */ | | fill the member variables correctly. */ | |
| NCursesWindow(); | | NCursesWindow(); | |
| | | | |
| public: | | public: | |
|
| NCursesWindow(WINDOW* &window); // useful only for stdscr | | NCursesWindow(WINDOW* window); // useful only for stdscr | |
| | | | |
| NCursesWindow(int nlines, // number of lines | | NCursesWindow(int nlines, // number of lines | |
| int ncols, // number of columns | | int ncols, // number of columns | |
| int begin_y, // line origin | | int begin_y, // line origin | |
| int begin_x); // col origin | | int begin_x); // col origin | |
| | | | |
| NCursesWindow(NCursesWindow& par,// parent window | | NCursesWindow(NCursesWindow& par,// parent window | |
| int nlines, // number of lines | | int nlines, // number of lines | |
| int ncols, // number of columns | | int ncols, // number of columns | |
| int begin_y, // absolute or relative | | int begin_y, // absolute or relative | |
| | | | |
| skipping to change at line 825 | | skipping to change at line 881 | |
| | | | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| // window status | | // window status | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| int height() const { return maxy() + 1; } | | int height() const { return maxy() + 1; } | |
| // Number of lines in this window | | // Number of lines in this window | |
| | | | |
| int width() const { return maxx() + 1; } | | int width() const { return maxx() + 1; } | |
| // Number of columns in this window | | // Number of columns in this window | |
| | | | |
|
| int begx() const { return w->_begx; } | | int begx() const { return getbegx(w); } | |
| // Column of top left corner relative to stdscr | | // Column of top left corner relative to stdscr | |
| | | | |
|
| int begy() const { return w->_begy; } | | int begy() const { return getbegy(w); } | |
| // Line of top left corner relative to stdscr | | // Line of top left corner relative to stdscr | |
| | | | |
|
| int maxx() const { return w->_maxx; } | | int curx() const { return getcurx(w); } | |
| | | // Column of top left corner relative to stdscr | |
| | | | |
| | | int cury() const { return getcury(w); } | |
| | | // Line of top left corner relative to stdscr | |
| | | | |
| | | int maxx() const { return getmaxx(w) == ERR ? ERR : getmaxx(w) | |
| | | -1; } | |
| // Largest x coord in window | | // Largest x coord in window | |
| | | | |
|
| int maxy() const { return w->_maxy; } | | int maxy() const { return getmaxy(w) == ERR ? ERR : getmaxy(w)
-1; } | |
| // Largest y coord in window | | // Largest y coord in window | |
| | | | |
| short getcolor() const; | | short getcolor() const; | |
| // Actual color pair | | // Actual color pair | |
| | | | |
| short foreground() const { return getcolor(0); } | | short foreground() const { return getcolor(0); } | |
| // Actual foreground color | | // Actual foreground color | |
| | | | |
| short background() const { return getcolor(1); } | | short background() const { return getcolor(1); } | |
| // Actual background color | | // Actual background color | |
| | | | |
| skipping to change at line 869 | | skipping to change at line 931 | |
| | | | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| // coordinate positioning | | // coordinate positioning | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| int move(int y, int x) { return ::wmove(w, y, x); } | | int move(int y, int x) { return ::wmove(w, y, x); } | |
| // Move cursor the this position | | // Move cursor the this position | |
| | | | |
| void getyx(int& y, int& x) const { ::getyx(w, y, x); } | | void getyx(int& y, int& x) const { ::getyx(w, y, x); } | |
| // Get current position of the cursor | | // Get current position of the cursor | |
| | | | |
|
| | | void getbegyx(int& y, int& x) const { ::getbegyx(w, y, x); } | |
| | | // Get beginning of the window | |
| | | | |
| | | void getmaxyx(int& y, int& x) const { ::getmaxyx(w, y, x); } | |
| | | // Get size of the window | |
| | | | |
| | | void getparyx(int& y, int& x) const { ::getparyx(w, y, x); } | |
| | | // Get parent's beginning of the window | |
| | | | |
| int mvcur(int oldrow, int oldcol, int newrow, int newcol) cons
t { | | int mvcur(int oldrow, int oldcol, int newrow, int newcol) cons
t { | |
| return ::mvcur(oldrow, oldcol, newrow, newcol); } | | return ::mvcur(oldrow, oldcol, newrow, newcol); } | |
| // Perform lowlevel cursor motion that takes effect immediately. | | // Perform lowlevel cursor motion that takes effect immediately. | |
| | | | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| // input | | // input | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| int getch() { return ::wgetch(w); } | | int getch() { return ::wgetch(w); } | |
| // Get a keystroke from the window. | | // Get a keystroke from the window. | |
| | | | |
| | | | |
| skipping to change at line 911 | | skipping to change at line 982 | |
| // as described above. | | // as described above. | |
| | | | |
| int scanw(const char* fmt, ...) | | int scanw(const char* fmt, ...) | |
| // Perform a scanw function from the window. | | // Perform a scanw function from the window. | |
| #if __GNUG__ >= 2 | | #if __GNUG__ >= 2 | |
| __attribute__ ((format (scanf, 2, 3))); | | __attribute__ ((format (scanf, 2, 3))); | |
| #else | | #else | |
| ; | | ; | |
| #endif | | #endif | |
| | | | |
|
| | | int scanw(const char*, va_list); | |
| | | // Perform a scanw function from the window. | |
| | | | |
| int scanw(int y, int x, const char* fmt, ...) | | int scanw(int y, int x, const char* fmt, ...) | |
| // Move the cursor to the requested position and then perform a scanw | | // Move the cursor to the requested position and then perform a scanw | |
| // from the window. | | // from the window. | |
| #if __GNUG__ >= 2 | | #if __GNUG__ >= 2 | |
| __attribute__ ((format (scanf, 4, 5))); | | __attribute__ ((format (scanf, 4, 5))); | |
| #else | | #else | |
| ; | | ; | |
| #endif | | #endif | |
| | | | |
|
| | | int scanw(int y, int x, const char* fmt, va_list); | |
| | | // Move the cursor to the requested position and then perform a scanw | |
| | | // from the window. | |
| | | | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| // output | | // output | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| int addch(const chtype ch) { return ::waddch(w, ch); } | | int addch(const chtype ch) { return ::waddch(w, ch); } | |
| // Put attributed character to the window. | | // Put attributed character to the window. | |
| | | | |
| int addch(int y, int x, const chtype ch) { | | int addch(int y, int x, const chtype ch) { | |
| return ::mvwaddch(w, y, x, ch); } | | return ::mvwaddch(w, y, x, ch); } | |
| // Move cursor to the requested position and then put attributed characte
r | | // Move cursor to the requested position and then put attributed characte
r | |
| // to the window. | | // to the window. | |
| | | | |
| skipping to change at line 941 | | skipping to change at line 1019 | |
| int echochar(const chtype ch) { return ::wechochar(w, ch); } | | int echochar(const chtype ch) { return ::wechochar(w, ch); } | |
| // Put attributed character to the window and refresh it immediately. | | // Put attributed character to the window and refresh it immediately. | |
| | | | |
| int addstr(const char* str, int n=-1) { | | int addstr(const char* str, int n=-1) { | |
| return ::waddnstr(w, str, n); } | | return ::waddnstr(w, str, n); } | |
| // Write the string str to the window, stop writing if the terminating | | // Write the string str to the window, stop writing if the terminating | |
| // NUL or the limit n is reached. If n is negative, it is ignored. | | // NUL or the limit n is reached. If n is negative, it is ignored. | |
| | | | |
| int addstr(int y, int x, const char * str, int n=-1) { | | int addstr(int y, int x, const char * str, int n=-1) { | |
| return ::mvwaddnstr(w, y, x, str, n); } | | return ::mvwaddnstr(w, y, x, str, n); } | |
|
| // Move the cursor to the requested position and then perform the addstr | | // Move the cursor to the requested position and then perform the addchst | |
| | | r | |
| | | // as described above. | |
| | | | |
| | | int addchstr(const chtype* str, int n=-1) { | |
| | | return ::waddchnstr(w, str, n); } | |
| | | // Write the string str to the window, stop writing if the terminating | |
| | | // NUL or the limit n is reached. If n is negative, it is ignored. | |
| | | | |
| | | int addchstr(int y, int x, const chtype * str, int n=-1) { | |
| | | return ::mvwaddchnstr(w, y, x, str, n); } | |
| | | // Move the cursor to the requested position and then perform the addchst | |
| | | r | |
| // as described above. | | // as described above. | |
| | | | |
| int printw(const char* fmt, ...) | | int printw(const char* fmt, ...) | |
| // Do a formatted print to the window. | | // Do a formatted print to the window. | |
| #if (__GNUG__ >= 2) && !defined(printf) | | #if (__GNUG__ >= 2) && !defined(printf) | |
| __attribute__ ((format (printf, 2, 3))); | | __attribute__ ((format (printf, 2, 3))); | |
| #else | | #else | |
| ; | | ; | |
| #endif | | #endif | |
| | | | |
| int printw(int y, int x, const char * fmt, ...) | | int printw(int y, int x, const char * fmt, ...) | |
| // Move the cursor and then do a formatted print to the window. | | // Move the cursor and then do a formatted print to the window. | |
| #if (__GNUG__ >= 2) && !defined(printf) | | #if (__GNUG__ >= 2) && !defined(printf) | |
| __attribute__ ((format (printf, 4, 5))); | | __attribute__ ((format (printf, 4, 5))); | |
| #else | | #else | |
| ; | | ; | |
| #endif | | #endif | |
| | | | |
|
| | | int printw(const char* fmt, va_list args); | |
| | | // Do a formatted print to the window. | |
| | | | |
| | | int printw(int y, int x, const char * fmt, va_list args); | |
| | | // Move the cursor and then do a formatted print to the window. | |
| | | | |
| chtype inch() const { return ::winch(w); } | | chtype inch() const { return ::winch(w); } | |
| // Retrieve attributed character under the current cursor position. | | // Retrieve attributed character under the current cursor position. | |
| | | | |
| chtype inch(int y, int x) { return ::mvwinch(w, y, x); } | | chtype inch(int y, int x) { return ::mvwinch(w, y, x); } | |
| // Move cursor to requested position and then retrieve attributed charact
er | | // Move cursor to requested position and then retrieve attributed charact
er | |
| // at this position. | | // at this position. | |
| | | | |
|
| | | int inchstr(chtype* str, int n=-1) { | |
| | | return ::winchnstr(w, str, n); } | |
| | | // Read the string str from the window, stop reading if the terminating | |
| | | // NUL or the limit n is reached. If n is negative, it is ignored. | |
| | | | |
| | | int inchstr(int y, int x, chtype * str, int n=-1) { | |
| | | return ::mvwinchnstr(w, y, x, str, n); } | |
| | | // Move the cursor to the requested position and then perform the inchstr | |
| | | // as described above. | |
| | | | |
| int insch(chtype ch) { return ::winsch(w, ch); } | | int insch(chtype ch) { return ::winsch(w, ch); } | |
| // Insert attributed character into the window before current cursor | | // Insert attributed character into the window before current cursor | |
| // position. | | // position. | |
| | | | |
| int insch(int y, int x, chtype ch) { | | int insch(int y, int x, chtype ch) { | |
| return ::mvwinsch(w, y, x, ch); } | | return ::mvwinsch(w, y, x, ch); } | |
| // Move cursor to requested position and then insert the attributed | | // Move cursor to requested position and then insert the attributed | |
| // character before that position. | | // character before that position. | |
| | | | |
| int insertln() { return ::winsdelln(w, 1); } | | int insertln() { return ::winsdelln(w, 1); } | |
| | | | |
| skipping to change at line 1003 | | skipping to change at line 1107 | |
| | | | |
| int attron (chtype at) { return ::wattron (w, at); } | | int attron (chtype at) { return ::wattron (w, at); } | |
| // Switch on the window attributes; | | // Switch on the window attributes; | |
| | | | |
| int attroff(chtype at) { return ::wattroff(w, static_cast<int>
(at)); } | | int attroff(chtype at) { return ::wattroff(w, static_cast<int>
(at)); } | |
| // Switch off the window attributes; | | // Switch off the window attributes; | |
| | | | |
| int attrset(chtype at) { return ::wattrset(w, static_cast<int>
(at)); } | | int attrset(chtype at) { return ::wattrset(w, static_cast<int>
(at)); } | |
| // Set the window attributes; | | // Set the window attributes; | |
| | | | |
|
| | | chtype attrget() { return ::getattrs(w); } | |
| | | // Get the window attributes; | |
| | | | |
| int color_set(short color_pair_number, void* opts=NULL) { | | int color_set(short color_pair_number, void* opts=NULL) { | |
| return ::wcolor_set(w, color_pair_number, opts); } | | return ::wcolor_set(w, color_pair_number, opts); } | |
| // Set the window color attribute; | | // Set the window color attribute; | |
| | | | |
| int chgat(int n, attr_t attr, short color, const void *opts=NU
LL) { | | int chgat(int n, attr_t attr, short color, const void *opts=NU
LL) { | |
| return ::wchgat(w, n, attr, color, opts); } | | return ::wchgat(w, n, attr, color, opts); } | |
| // Change the attributes of the next n characters in the current line. If | | // Change the attributes of the next n characters in the current line. If | |
| // n is negative or greater than the number of remaining characters in th
e | | // n is negative or greater than the number of remaining characters in th
e | |
| // line, the attributes will be changed up to the end of the line. | | // line, the attributes will be changed up to the end of the line. | |
| | | | |
| | | | |
| skipping to change at line 1122 | | skipping to change at line 1229 | |
| // Define a soft scrolling region. | | // Define a soft scrolling region. | |
| | | | |
| int idlok(bool bf) { return ::idlok(w, bf); } | | int idlok(bool bf) { return ::idlok(w, bf); } | |
| // If bf is TRUE, use insert/delete line hardware support if possible. | | // If bf is TRUE, use insert/delete line hardware support if possible. | |
| // Otherwise do it in software. | | // Otherwise do it in software. | |
| | | | |
| void idcok(bool bf) { ::idcok(w, bf); } | | void idcok(bool bf) { ::idcok(w, bf); } | |
| // If bf is TRUE, use insert/delete character hardware support if possibl
e. | | // If bf is TRUE, use insert/delete character hardware support if possibl
e. | |
| // Otherwise do it in software. | | // Otherwise do it in software. | |
| | | | |
|
| | | int touchline(int s, int c) { return ::touchline(w, s, c); } | |
| | | // Mark the given lines as modified. | |
| | | | |
| int touchwin() { return ::wtouchln(w, 0, height(), 1); } | | int touchwin() { return ::wtouchln(w, 0, height(), 1); } | |
| // Mark the whole window as modified. | | // Mark the whole window as modified. | |
| | | | |
| int untouchwin() { return ::wtouchln(w, 0, height(), 0); } | | int untouchwin() { return ::wtouchln(w, 0, height(), 0); } | |
| // Mark the whole window as unmodified. | | // Mark the whole window as unmodified. | |
| | | | |
| int touchln(int s, int cnt, bool changed=TRUE) { | | int touchln(int s, int cnt, bool changed=TRUE) { | |
| return ::wtouchln(w, s, cnt, static_cast<int>(changed ? 1 : 0)); } | | return ::wtouchln(w, s, cnt, static_cast<int>(changed ? 1 : 0)); } | |
| // Mark cnt lines beginning from line s as changed or unchanged, dependin
g | | // Mark cnt lines beginning from line s as changed or unchanged, dependin
g | |
| // on the value of the changed flag. | | // on the value of the changed flag. | |
| | | | |
| skipping to change at line 1174 | | skipping to change at line 1284 | |
| // If called with bf=TRUE, syncup() is called whenever the window is chan
ged | | // If called with bf=TRUE, syncup() is called whenever the window is chan
ged | |
| | | | |
| #ifndef _no_flushok | | #ifndef _no_flushok | |
| int flushok(bool bf) { return ::flushok(w, bf); } | | int flushok(bool bf) { return ::flushok(w, bf); } | |
| #endif | | #endif | |
| | | | |
| void immedok(bool bf) { ::immedok(w, bf); } | | void immedok(bool bf) { ::immedok(w, bf); } | |
| // If called with bf=TRUE, any change in the window will cause an | | // If called with bf=TRUE, any change in the window will cause an | |
| // automatic immediate refresh() | | // automatic immediate refresh() | |
| | | | |
|
| | | int intrflush(bool bf) { return ::intrflush(w, bf); } | |
| | | | |
| int keypad(bool bf) { return ::keypad(w, bf); } | | int keypad(bool bf) { return ::keypad(w, bf); } | |
| // If called with bf=TRUE, the application will interpret function keys. | | // If called with bf=TRUE, the application will interpret function keys. | |
| | | | |
|
| | | int nodelay(bool bf) { return ::nodelay(w, bf); } | |
| | | | |
| int meta(bool bf) { return ::meta(w, bf); } | | int meta(bool bf) { return ::meta(w, bf); } | |
| // If called with bf=TRUE, keys may generate 8-Bit characters. Otherwise | | // If called with bf=TRUE, keys may generate 8-Bit characters. Otherwise | |
| // 7-Bit characters are generated. | | // 7-Bit characters are generated. | |
| | | | |
| int standout() { return ::wstandout(w); } | | int standout() { return ::wstandout(w); } | |
| // Enable "standout" attributes | | // Enable "standout" attributes | |
| | | | |
| int standend() { return ::wstandend(w); } | | int standend() { return ::wstandend(w); } | |
| // Disable "standout" attributes | | // Disable "standout" attributes | |
| | | | |
| | | | |
| skipping to change at line 1221 | | skipping to change at line 1335 | |
| int sminrow, int smincol, | | int sminrow, int smincol, | |
| int dminrow, int dmincol, | | int dminrow, int dmincol, | |
| int dmaxrow, int dmaxcol, bool overlaywin=TRUE) { | | int dmaxrow, int dmaxcol, bool overlaywin=TRUE) { | |
| return ::copywin(w, win.w, sminrow, smincol, dminrow, dmincol, | | return ::copywin(w, win.w, sminrow, smincol, dminrow, dmincol, | |
| dmaxrow, dmaxcol, static_cast<int>(overlaywin ? 1 : 0))
; } | | dmaxrow, dmaxcol, static_cast<int>(overlaywin ? 1 : 0))
; } | |
| // Overlay or overwrite the rectangle in win given by dminrow,dmincol, | | // Overlay or overwrite the rectangle in win given by dminrow,dmincol, | |
| // dmaxrow,dmaxcol with the rectangle in this window beginning at | | // dmaxrow,dmaxcol with the rectangle in this window beginning at | |
| // sminrow,smincol. | | // sminrow,smincol. | |
| | | | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
|
| | | // Extended functions | |
| | | // ---------------------------------------------------------------------- | |
| | | --- | |
| | | #if defined(NCURSES_EXT_FUNCS) && (NCURSES_EXT_FUNCS != 0) | |
| | | int wresize(int newLines, int newColumns) { | |
| | | return ::wresize(w, newLines, newColumns); } | |
| | | #endif | |
| | | | |
| | | // ---------------------------------------------------------------------- | |
| | | --- | |
| // Mouse related | | // Mouse related | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| bool has_mouse() const; | | bool has_mouse() const; | |
| // Return TRUE if terminal supports a mouse, FALSE otherwise | | // Return TRUE if terminal supports a mouse, FALSE otherwise | |
| | | | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| // traversal support | | // traversal support | |
| // ----------------------------------------------------------------------
--- | | // ----------------------------------------------------------------------
--- | |
| NCursesWindow* child() { return subwins; } | | NCursesWindow* child() { return subwins; } | |
| // Get the first child window. | | // Get the first child window. | |
| | | | |
End of changes. 78 change blocks. |
| 365 lines changed or deleted | | 497 lines changed or added | |
|