?? cursesw.h
字號:
#ifdef UI_NCURSES#ifndef _CURSESW_H#define _CURSESW_H#pragma interface//#include <config.h>#include <stdio.h>#include <stdarg.h>#if HAVE_VALUES_H#include <values.h>#endif#include <strstream.h>extern "C" {#include <curses.h>}/* SCO 3.2v4 curses.h includes term.h, which defines lines as a macro. Undefine it here, because NCursesWindow uses lines as a method. */#undef lines#undef UNDEF#define UNDEF(name) CUR_ ##name#ifdef addchinline int UNDEF(addch)(chtype ch) { return addch(ch); }#undef addch#define addch UNDEF(addch)#endif#ifdef addstr/* The (char*) cast is to hack around missing const's */inline int UNDEF(addstr)(const char * str) { return addstr((char*)str); }#undef addstr#define addstr UNDEF(addstr)#endif#ifdef addnstrinline int UNDEF(addnstr)(const char * str, int n) { return addnstr((char*)str,n); }#undef addnstr#define addnstr UNDEF(addnstr)#endif#ifdef attroninline int UNDEF(attron)(chtype at) { return attron(at); }#undef attron#define attron UNDEF(attron)#endif#ifdef attroffinline int UNDEF(attroff)(chtype at) { return attroff(at); }#undef attroff#define attroff UNDEF(attroff)#endif#ifdef attrsetinline chtype UNDEF(attrset)(chtype at) { return attrset(at); }#undef attrset#define attrset UNDEF(attrset)#endif#ifdef borderinline 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); }#undef border#define border UNDEF(border)#endif#ifdef boxinline int UNDEF(box)(WINDOW *win, int v, int h) { return box(win, v, h); }#undef box#define box UNDEF(box)#endif#ifdef clearinline int UNDEF(clear)() { return clear(); }#undef clear#define clear UNDEF(clear)#endif#ifdef clearokinline int UNDEF(clearok)(WINDOW* win, int bf) { return clearok(win, bf); }#undef clearok#define clearok UNDEF(clearok)#elseextern "C" int clearok(WINDOW*, bool);#endif#ifdef clrtobotinline int UNDEF(clrtobot)() { return clrtobot(); }#undef clrtobot#define clrtobot UNDEF(clrtobot)#endif#ifdef clrtoeolinline int UNDEF(clrtoeol)() { return clrtoeol(); }#undef clrtoeol#define clrtoeol UNDEF(clrtoeol)#endif#ifdef delchinline int UNDEF(delch)() { return delch(); }#undef delch#define delch UNDEF(delch)#endif#ifdef deletelninline int UNDEF(deleteln)() { return deleteln(); }#undef deleteln#define deleteln UNDEF(deleteln)#endif#ifdef eraseinline int UNDEF(erase)() { return erase(); }#undef erase#define erase UNDEF(erase)#endif#ifdef flushokinline int UNDEF(flushok)(WINDOW* _win, int _bf) { return flushok(_win, _bf); }#undef flushok#define flushok UNDEF(flushok)#else#define _no_flushok#endif#ifdef nodelayinline int UNDEF(nodelay)(WINDOW* _win, bool _bf) { return nodelay(_win,_bf); }#undef nodelay#define nodelay UNDEF(nodelay)#endif#ifdef getchinline int UNDEF(getch)() { return getch(); }#undef getch#define getch UNDEF(getch)#endif#ifdef getstrinline int UNDEF(getstr)(char *_str) { return getstr(_str); }#undef getstr#define getstr UNDEF(getstr)#endif#ifdef getyxinline void UNDEF(getyx)(WINDOW* win, int& y, int& x) { getyx(win, y, x); }#undef getyx#define getyx UNDEF(getyx)#endif#ifdef getbegyxinline void UNDEF(getbegyx)(WINDOW* win, int& y, int& x) { getbegyx(win, y, x); }#undef getbegyx#define getbegyx UNDEF(getbegyx)#endif#ifdef getmaxyxinline void UNDEF(getmaxyx)(WINDOW* win, int& y, int& x) { getmaxyx(win, y, x); }#undef getmaxyx#define getmaxyx UNDEF(getmaxyx)#endif#ifdef hlineinline int UNDEF(hline)(chtype ch, int n) { return hline(ch, n); }#undef hline#define hline UNDEF(hline)#endif#ifdef inchinline int UNDEF(inch)() { return inch(); }#undef inch#define inch UNDEF(inch)#endif#ifdef inschinline int UNDEF(insch)(char c) { return insch(c); }#undef insch#define insch UNDEF(insch)#endif#ifdef insertlninline int UNDEF(insertln)() { return insertln(); }#undef insertln#define insertln UNDEF(insertln)#endif#ifdef leaveokinline int UNDEF(leaveok)(WINDOW* win, int bf) { return leaveok(win, bf); }#undef leaveok#define leaveok UNDEF(leaveok)#elseextern "C" int leaveok(WINDOW* win, bool bf);#endif#ifdef moveinline int UNDEF(move)(int x, int y) { return move(x, y); }#undef move#define move UNDEF(move)#endif#ifdef refreshinline int UNDEF(refresh)() { return refresh(); }#undef refresh#define refresh UNDEF(refresh)#endif#ifdef scrlinline int UNDEF(scrl)(int l) { return scrl(l); }#undef scrl#define scrl UNDEF(scrl)#endif#ifdef scrollinline int UNDEF(scroll)(WINDOW *win) { return scroll(win); }#undef scroll#define scroll UNDEF(scroll)#endif#ifdef scrollokinline int UNDEF(scrollok)(WINDOW* win, int bf) { return scrollok(win, bf); }#undef scrollok#define scrollok UNDEF(scrollok)#else#if defined(__NCURSES_H)extern "C" int scrollok(WINDOW*, bool);#elseextern "C" int scrollok(WINDOW*, char);#endif#endif#ifdef setscrreginline int UNDEF(setscrreg)(int t, int b) { return setscrreg(t, b); }#undef setscrreg#define setscrreg UNDEF(setscrreg)#endif#ifdef standendinline int UNDEF(standend)() { return standend(); }#undef standend#define standend UNDEF(standend)#endif#ifdef standoutinline int UNDEF(standout)() { return standout(); }#undef standout#define standout UNDEF(standout)#endif#ifdef subpadinline 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 timeoutinline int UNDEF(timeout)(int delay) { return timeout(delay); }#undef timeout#define timeout UNDEF(timeout)#endif#ifdef wtimeoutinline int UNDEF(wtimeout)(WINDOW* win, int delay) { return wtimeout(win,delay); }#undef wtimeout#define wtimeout UNDEF(wtimeout)#endif#ifdef touchlineinline int UNDEF(touchline)(WINDOW *win, int s, int c){ return touchline(win,s,c); }#undef touchline#define touchline UNDEF(touchline)#endif#ifdef touchwininline int UNDEF(touchwin)(WINDOW *win) { return touchwin(win); }#undef touchwin#define touchwin UNDEF(touchwin)#endif#ifdef untouchwininline int UNDEF(untouchwin)(WINDOW *win) { return untouchwin(win); }#undef untouchwin#define untouchwin UNDEF(untouchwin)#endif#ifdef vlineinline int UNDEF(vline)(chtype ch, int n) { return vline(ch, n); }#undef vline#define vline UNDEF(vline)#endif#ifdef waddstrinline int UNDEF(waddstr)(WINDOW *win, char *str) { return waddstr(win, str); }#undef waddstr#define waddstr UNDEF(waddstr)#endif#ifdef waddchstrinline int UNDEF(waddchstr)(WINDOW *win, chtype *at) { return waddchstr(win, at); }#undef waddchstr#define waddchstr UNDEF(waddchstr)#endif#ifdef wstandendinline int UNDEF(wstandend)(WINDOW *win) { return wstandend(win); }#undef wstandend#define wstandend UNDEF(wstandend)#endif#ifdef wstandoutinline int UNDEF(wstandout)(WINDOW *win) { return wstandout(win); }#undef wstandout#define wstandout UNDEF(wstandout)#endif#ifdef wattroffinline int UNDEF(wattroff)(WINDOW *win, int att) { return wattroff(win, att); }#undef wattroff#define wattroff UNDEF(wattroff)#endif#ifdef wattrsetinline int UNDEF(wattrset)(WINDOW *win, int att) { return wattrset(win, att); }#undef wattrset#define wattrset UNDEF(wattrset)#endif#ifdef winchinline chtype UNDEF(winch)(WINDOW* win) { return winch(win); }#undef winch#define winch UNDEF(winch)#endif#ifdef mvwaddchinline int UNDEF(mvwaddch)(WINDOW *win, int y, int x, chtype ch){ return mvwaddch(win, y, x, ch); }#undef mvwaddch#define mvwaddch UNDEF(mvwaddch)#endif#ifdef mvwaddchnstrinline int UNDEF(mvwaddchnstr)(WINDOW *win, int y, int x, chtype *str, int n){ return mvwaddchnstr(win, y, x, str, n); }#undef mvwaddchnstr#define mvwaddchnstr UNDEF(mvwaddchnstr)#endif#ifdef mvwaddchstrinline int UNDEF(mvwaddchstr)(WINDOW *win, int y, int x, chtype *str){ return mvwaddchstr(win, y, x, str); }#undef mvwaddchstr#define mvwaddchstr UNDEF(mvwaddchstr)#endif#ifdef mvwaddnstrinline int UNDEF(mvwaddnstr)(WINDOW *win, int y, int x, const char *str, int n){ return mvwaddnstr(win, y, x, (char*)str, n); }#undef mvwaddnstr#define mvwaddnstr UNDEF(mvwaddnstr)#endif#ifdef mvwaddstrinline int UNDEF(mvwaddstr)(WINDOW *win, int y, int x, const char * str){ return mvwaddstr(win, y, x, (char*)str); }#undef mvwaddstr#define mvwaddstr UNDEF(mvwaddstr)#endif#ifdef mvwdelchinline int UNDEF(mvwdelch)(WINDOW *win, int y, int x){ return mvwdelch(win, y, x); }#undef mvwdelch
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -