?? cursesp.h
字號:
// This is originally from the cursesp.h in the ncurses-1.9.3 package#ifdef UI_NCURSES#ifndef _CURSESP_H#define _CURSESP_H#pragma interface#include "cursesw.h"extern "C" {#include <panel.h>}class NCursesPanel : public NCursesColorWindow { protected: PANEL *p; public: NCursesPanel(); // make a full window size panel NCursesPanel(int lines, int cols, int begin_y, int begin_x); inline ~NCursesPanel(); // basic manipulation int hide() { return hide_panel(p); } int show() { return show_panel(p); } int top() { return top_panel(p); } int bottom() { return bottom_panel(p); } int mvpan(int y, int x) { return move_panel(p, y, x); } int mvwin(int y, int x) { return move_panel(p, y, x); } static void redraw(); // redraw all panels static void refresh(); // update screen // decorations int frame(const char *title =0); int boldframe(const char *title =0);};inline NCursesPanel::NCursesPanel() : NCursesColorWindow(0, 0, 0, 0){ p = new_panel(w);}inline NCursesPanel::NCursesPanel(int lines, int cols, int begin_y, int begin_x) : NCursesColorWindow(lines, cols, begin_y, begin_x){ p = new_panel(w);}inline NCursesPanel::~NCursesPanel(){ del_panel(p); update_panels(); doupdate();}#endif // _CURSESP_H#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -